Changeset 3332675
- Timestamp:
- 07/23/2025 07:42:31 AM (7 months ago)
- Location:
- printess-editor/trunk
- Files:
-
- 2 edited
-
printess.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
printess-editor/trunk/printess.php
r3332044 r3332675 5 5 * Plugin URI: https://printess.com/kb/integrations/woo-commerce/index.html 6 6 * Developer: Bastian Kröger ([email protected]); Alexander Oser ([email protected]) 7 * Version: 1.6.5 07 * Version: 1.6.51 8 8 * Author: Printess 9 9 * Author URI: https://printess.com … … 14 14 * Tested up to: 6.8 15 15 * 16 * Woo: 10000:9240 09dfsfhsf8429842385wdff234sfd16 * Woo: 10000:924010dfsfhsf8429842385wdff234sfd 17 17 * WC requires at least: 5.8 18 18 * WC tested up to: 9.8.2 … … 605 605 foreach($values as $x => $y) { 606 606 foreach($y as $key => $value) { 607 if(is_string($value)) { 608 break; 609 } 610 607 611 $label = $value["display_label"]; 608 612 … … 616 620 $ret[$label] = $value["display_value"]; 617 621 } 622 618 623 break; 619 624 } … … 2021 2026 } 2022 2027 2023 2024 echo ' <div>' . esc_html__( 'Line item id:', 'printess-editor' ) . " " . $item->get_id() . '</div>';2025 2026 2028 if ( printess_do_render_edit_link( $item ) ) { 2027 2029 echo ' <a target=_blank href="' . esc_url( $url ) . '">' . esc_html__( 'Edit Customer Design', 'printess-editor' ) . '</a>'; 2028 2030 } 2031 2032 if (null !== $printess_job_id && !empty( $printess_job_id ) ) { 2033 $url = add_query_arg( 2034 array( 2035 'action' => 'printess_reproduce_order_line_item', 2036 'order_id' => $order_id, 2037 'item_id' => $item_id, 2038 'pst' => $printess_save_token, 2039 'nonce' => wp_create_nonce( 'printess_reproduce_order_line_item' ), 2040 ), 2041 home_url() 2042 ); 2043 2044 echo '<div><a href="' . esc_url( $url ) . '">' . esc_attr__( 'Reproduce item', 'printess-editor' ) . '</a></div>'; 2045 } 2046 2047 echo ' <div>' . esc_html__( 'Line item id:', 'printess-editor' ) . " " . $item->get_id() . '</div>'; 2029 2048 } 2030 2049 … … 2838 2857 $nonce = filter_input( INPUT_GET, 'nonce' ); 2839 2858 2840 if ( isset( $action ) && isset( $nonce ) && 'printess_approve_order_line_item' === $action && wp_verify_nonce( $nonce, 'printess_approve_order_line_item' )) {2859 if ( isset( $action ) && isset( $nonce ) && (('printess_approve_order_line_item' === $action && wp_verify_nonce( $nonce, 'printess_approve_order_line_item' )) || ('printess_reproduce_order_line_item' === $action && wp_verify_nonce( $nonce, 'printess_reproduce_order_line_item' ))) ) { 2841 2860 $order_id = filter_input( INPUT_GET, 'order_id', FILTER_SANITIZE_NUMBER_INT ); 2842 2861 $line_item_id = filter_input( INPUT_GET, 'item_id', FILTER_SANITIZE_NUMBER_INT ); … … 2844 2863 $order = new WC_Order( $order_id ); 2845 2864 $item = $order->get_item( $line_item_id ); 2865 2866 $job_id = $item->get_meta( '_printess-job-id', true ); 2867 2868 if(null !== $job_id && !empty($job_id)) { 2869 $item->delete_meta_data( '_printess-job-id'); 2870 } 2846 2871 2847 2872 $order_items = array( $line_item_id => $item ); -
printess-editor/trunk/readme.txt
r3332044 r3332675 287 287 = 1.6.50 = 288 288 - Fixed issues with "Personalized product without personalization was added to the cart" warning that appeared on some products that have not been configured as printess items. 289 290 = 1.6.51 = 291 - Added option to order line items to reproduce single items
Note: See TracChangeset
for help on using the changeset viewer.