Changeset 3393897
- Timestamp:
- 11/11/2025 09:04:35 PM (7 weeks ago)
- Location:
- woocommerce-for-japan
- Files:
-
- 10 edited
- 1 copied
-
tags/2.7.17 (copied) (copied from woocommerce-for-japan/trunk)
-
tags/2.7.17/includes/admin/class-jp4wc-admin-screen.php (modified) (3 diffs)
-
tags/2.7.17/includes/class-jp4wc-delivery.php (modified) (7 diffs)
-
tags/2.7.17/includes/class-jp4wc-yahoo-api-endpoint.php (modified) (4 diffs)
-
tags/2.7.17/readme.txt (modified) (2 diffs)
-
tags/2.7.17/woocommerce-for-japan.php (modified) (2 diffs)
-
trunk/includes/admin/class-jp4wc-admin-screen.php (modified) (3 diffs)
-
trunk/includes/class-jp4wc-delivery.php (modified) (7 diffs)
-
trunk/includes/class-jp4wc-yahoo-api-endpoint.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-for-japan.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-for-japan/tags/2.7.17/includes/admin/class-jp4wc-admin-screen.php
r3391538 r3393897 342 342 'jp4wc_shipment', 343 343 'jp4wc_delivery_time' 344 ); 345 346 // Delivery notification. 347 add_settings_section( 348 'jp4wc_delivery_notification', 349 __( 'Notification of missing required fields', 'woocommerce-for-japan' ), 350 '', 351 'jp4wc_shipment' 352 ); 353 add_settings_field( 354 'jp4wc_delivery_notification_email', 355 __( 'Notification email address', 'woocommerce-for-japan' ), 356 array( $this, 'jp4wc_delivery_notification_email' ), 357 'jp4wc_shipment', 358 'jp4wc_delivery_notification' 344 359 ); 345 360 … … 728 743 'date-format', 729 744 'day-of-week', 745 'delivery-notification-email', 730 746 ); 731 747 $this->jp4wc_save_methods( $add_methods ); … … 1199 1215 1200 1216 /** 1217 * Delivery notification email option. 1218 * 1219 * Displays input field for delivery notification email address setting. 1220 * This email will receive notifications when customers specify delivery 1221 * date and time preferences. 1222 * 1223 * @return void 1224 */ 1225 public function jp4wc_delivery_notification_email() { 1226 $description = __( 'Please enter the email address where you would like to receive notifications when a customer fails to enter the required delivery date and time.', 'woocommerce-for-japan' ); 1227 $this->jp4wc_plugin->jp4wc_input_text( 'delivery-notification-email', $description, 60, '', $this->prefix ); 1228 } 1229 1230 /** 1201 1231 * BANK PAYMENT IN JAPAN option. 1202 1232 */ -
woocommerce-for-japan/tags/2.7.17/includes/class-jp4wc-delivery.php
r3272861 r3393897 35 35 // Save delivery date and time values to order. 36 36 add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'update_order_meta' ) ); 37 add_filter( 'woocommerce_checkout_posted_data', array( $this, 'jp4wc_delivery_posted_data' ) ); 38 // Validate delivery date and time fields at checkout. 37 39 add_action( 'woocommerce_after_checkout_validation', array( $this, 'validate_date_time_checkout_field' ), 10, 2 ); 38 40 // Show on order detail at thanks page (frontend). … … 46 48 add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) ); 47 49 add_action( 'woocommerce_process_shop_order_meta', array( $this, 'save_meta_box' ), 0, 1 ); 50 51 add_filter( 'woocommerce_payment_successful_result', array( $this, 'jp4wc_delivery_check_data' ), 10, 1 ); 48 52 } 49 53 … …