💦 FULL SET: Changeset/ - Full Archive

Changeset 3393897


Ignore:
Timestamp:
11/11/2025 09:04:35 PM (7 weeks ago)
Author:
shohei.tanaka
Message:

Update to version 2.7.17 from GitHub

Location:
woocommerce-for-japan
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-for-japan/tags/2.7.17/includes/admin/class-jp4wc-admin-screen.php

    r3391538 r3393897  
    342342            'jp4wc_shipment',
    343343            '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'
    344359        );
    345360
     
    728743                    'date-format',
    729744                    'day-of-week',
     745                    'delivery-notification-email',
    730746                );
    731747                $this->jp4wc_save_methods( $add_methods );
     
    11991215
    12001216    /**
     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    /**
    12011231     * BANK PAYMENT IN JAPAN option.
    12021232     */
  • woocommerce-for-japan/tags/2.7.17/includes/class-jp4wc-delivery.php

    r3272861 r3393897  
    3535        // Save delivery date and time values to order.
    3636        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.
    3739        add_action( 'woocommerce_after_checkout_validation', array( $this, 'validate_date_time_checkout_field' ), 10, 2 );
    3840        // Show on order detail at thanks page (frontend).
     
    4648        add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );
    4749        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 );
    4852    }
    4953