Plugin Directory

Changeset 3806775


Ignore:
Timestamp:
11/17/2026 08:07:18 AM (less than one hour ago)
Author:
bhagirath25
Message:

Prepare 1.0.18 release with WooCommerce address fields

Location:
waloops-express-checkout-for-woocommerce/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • waloops-express-checkout-for-woocommerce/trunk/assets/js/checkout-flow.js

    r3710588 r3806775  
    16091609                                                state: addr.state,
    16101610                                                country: addr.country,
     1611                                                checkout_fields: addr.checkout_fields || {},
    16111612                                                create_account: state.guestCreateAccount ? 1 : 0,
    16121613                                                marketing_optin: state.guestMarketingOptin ? 1 : 0,
    … …  
    18521853                        $step.find( '.wlec-addr-phone' ).prop( 'readonly', false ).val( addr && addr.phone ? addr.phone : '' );
    18531854                }
     1855                var checkoutFieldValues = $.extend(
     1856                        {},
     1857                        ( window.WLEC && WLEC.checkout_field_values ) || {},
     1858                        ( addr && addr.checkout_fields ) || {}
     1859                );
     1860                $step.find( '[data-wlec-checkout-field]' ).each( function () {
     1861                        var $field = $( this );
     1862                        var value  = checkoutFieldValues[ $field.attr( 'data-wlec-checkout-field' ) ];
     1863                        if ( this.type === 'checkbox' ) {
     1864                                $field.prop( 'checked', value === true || value === 1 || value === '1' || ( value === $field.val() && value !== '' ) );
     1865                        } else {
     1866                                $field.val( value === undefined || value === null ? '' : value );
     1867                        }
     1868                } );
    18541869                $step.find( '.wlec-input-error' ).removeClass( 'wlec-input-error' );
    18551870                showStepError( $step, '' );
     1871        }
     1872
     1873        function readAddressCheckoutFields( $step ) {
     1874                var values = {};
     1875                $step.find( '[data-wlec-checkout-field]' ).each( function () {
     1876                        var $field = $( this );
     1877                        var value  = this.type === 'checkbox' ? ( $field.prop( 'checked' ) ? $field.val() : '' ) : $field.val();
     1878                        values[ $field.attr( 'data-wlec-checkout-field' ) ] = value;
     1879                } );
     1880                return values;
    18561881        }
    18571882
    … …  
    18751900                var message = data.message || WLEC.i18n.generic_error || 'Could not save address. Please try again.';
    18761901                if ( data.field ) {
    1877                         var $field = $step.find( '.wlec-addr-' + data.field );
     1902                        var $field = $step.find( '[data-wlec-checkout-field]' ).filter( function () {
     1903                                return $( this ).attr( 'data-wlec-checkout-field' ) === data.field;
     1904                        } );
     1905                        if ( ! $field.length ) {
     1906                                $field = $step.find( '.wlec-addr-' + data.field );
     1907                        }
    18781908                        markFieldErrors( $step, $field );
    18791909                        $field.trigger( 'focus' );
    … …  
    19872017                                phone: $step.find( '.wlec-addr-phone' ).val().trim() || state.verifiedPhone || '',
    19882018                                country: $step.find( '.wlec-addr-country' ).val() || ( WLEC && WLEC.country ) || 'IN',
     2019                                checkout_fields: readAddressCheckoutFields( $step ),
    19892020                        };
    19902021                        var requiredFieldMap = {
    … …  
    20002031                                if ( ! data[ key ] ) {
    20012032                                        $missing = $missing.add( $step.find( selector ) );
     2033                                }
     2034                        } );
     2035                        $step.find( '[data-wlec-checkout-field][required]' ).each( function () {
     2036                                var $field = $( this );
     2037                                var empty  = this.type === 'checkbox' ? ! $field.prop( 'checked' ) : ! $field.val();
     2038                                if ( empty ) {
     2039                                        $missing = $missing.add( $field );
    20022040                                }
    20032041                        } );
  • waloops-express-checkout-for-woocommerce/trunk/docs/HOOKS.md

    r3710446 r3806775  
    5858| `wlec_payment_methods` | The payment methods shown in the checkout panel | `$methods` | `array` |
    5959| `wlec_address_required_fields` | Which address fields are required to save an address / place an order | `$required` (field keys) | `array` |
     60| `wlec_address_checkout_fields` | Additional WooCommerce address fields shown in the Express Checkout address form | `$fields` (field ID => definition) | `array` |
    6061| `wlec_billing_fields` | Billing fields derived from a resolved address, before being written into `$_POST`/`WC()->customer` | `$billing, $address` | `array` |
     62
     63WooCommerce Additional Checkout Fields registered with
     64`woocommerce_register_additional_checkout_field()` and `location` set to
     65`address` are rendered automatically in the Express Checkout address form.
     66Their values are included in saved addresses, validated with WooCommerce's
     67field callbacks, synced to the customer's billing/shipping field metadata, and
     68saved to orders. The `checkout_fields` key on each WLEC address holds these
     69values, keyed by their WooCommerce field IDs. Use `wlec_address_checkout_fields`
     70to adjust the field definitions shown in this form.
    6171
    6272## Add-to-cart form data attributes (JavaScript)
  • waloops-express-checkout-for-woocommerce/trunk/includes/class-wlec-address-book.php

    r3705601 r3806775  
    1616
    1717        const META_KEY = '_wlec_addresses';
     18
     19        /**
     20         * Address fields registered through WooCommerce's Additional Checkout Fields API.
     21         *
     22         * @return array
     23         */
     24        public static function get_checkout_fields() {
     25                $fields  = array();
     26                $class   = '\Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields';
     27                $service = null;
     28
     29                if ( function_exists( 'wc_get_container' ) && class_exists( $class ) ) {
     30                        $service = wc_get_container()->get( $class );
     31                        if ( is_object( $service ) && method_exists( $service, 'get_additional_fields' ) ) {
     32                                foreach ( $service->get_additional_fields() as $field_id => $field ) {
     33                                        if ( ! is_array( $field ) || 'address' !== ( $field['location'] ?? '' ) || true === ( $field['hidden'] ?? false ) ) {
     34                                                continue;
     35                                        }
     36
     37                                        $field['id']       = $field_id;
     38                                        $fields[$field_id] = $field;
     39                                }
     40                        }
     41                }
     42
     43                /**
     44                 * Filters the registered WooCommerce address fields shown in Express Checkout.
     45                 *
     46                 * @param array $fields Additional checkout fields keyed by field ID.
     47                 */
     48                return apply_filters( 'wlec_address_checkout_fields', $fields );
     49        }
     50
     51        /**
     52         * Current or saved values for the registered address fields.
     53         *
     54         * @param array $address Address-book entry, when editing or selecting one.
     55         * @param int   $user_id Customer user ID.
     56         * @param array $posted  Values submitted from the current address form.
     57         * @return array
     58         */
     59        public static function get_checkout_field_values( $address = array(), $user_id = 0, $posted = array() ) {
     60                $address_values = isset( $address['checkout_fields'] ) && is_array( $address['checkout_fields'] )
     61                        ? self::sanitize_checkout_field_values( $address['checkout_fields'] )
     62                        : array();
     63                $posted_values  = self::sanitize_checkout_field_values( is_array( $posted ) ? $posted : array() );
     64                $user_id        = $user_id ? absint( $user_id ) : get_current_user_id();
     65                $values         = array();
     66
     67                foreach ( self::get_checkout_fields() as $field_id => $field ) {
     68                        if ( array_key_exists( $field_id, $address_values ) ) {
     69                                $values[$field_id] = $address_values[$field_id];
     70                        } elseif ( array_key_exists( $field_id, $posted_values ) ) {
     71                                $values[$field_id] = $posted_values[$field_id];
     72                        } elseif ( $user_id ) {
     73                                $values[$field_id] = get_user_meta( $user_id, '_wc_billing/' . $field_id, true );
     74                                if ( '' === $values[$field_id] ) {
     75                                        $values[$field_id] = get_user_meta( $user_id, '_wc_shipping/' . $field_id, true );
     76                                }
     77                        } else {
     78                                $values[$field_id] = '';
     79                        }
     80                }
     81
     82                return self::sanitize_checkout_field_values( $values );
     83        }
     84
     85        /**
     86         * Sanitize values using the same callbacks as WooCommerce's checkout fields.
     87         *
     88         * @param array $values Values keyed by registered checkout field ID.
     89         * @return array
     90         */
     91        public static function sanitize_checkout_field_values( array $values ) {
     92                $fields  = self::get_checkout_fields();
     93                $class   = '\Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields';
     94                $service = function_exists( 'wc_get_container' ) && class_exists( $class )
     95                        ? wc_get_container()->get( $class )
     96                        : null;
     97                $clean   = array();
     98
     99                foreach ( $fields as $field_id => $field ) {
     100                        if ( ! array_key_exists( $field_id, $values ) ) {
     101                                continue;
     102                        }
     103
     104                        $value = $values[$field_id];
     105                        if ( is_object( $service ) && method_exists( $service, 'sanitize_field' ) ) {
     106                                $clean[$field_id] = $service->sanitize_field( $field_id, $value );
     107                        } else {
     108                                $clean[$field_id] = is_scalar( $value ) ? sanitize_text_field( (string) $value ) : ( is_array( $value ) ? wc_clean( $value ) : '' );
     109                        }
     110                }
     111
     112                return $clean;
     113        }
     114
     115        /**
     116         * Validate registered address fields with WooCommerce's field callbacks.
     117         *
     118         * @param array $values Values keyed by registered checkout field ID.
     119         * @return true|WP_Error
     120         */
     121        public static function validate_checkout_field_values( array $values ) {
     122                $values  = self::sanitize_checkout_field_values( $values );
     123                $class   = '\Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields';
     124                $service = function_exists( 'wc_get_container' ) && class_exists( $class )
     125                        ? wc_get_container()->get( $class )
     126                        : null;
     127
     128                foreach ( self::get_checkout_fields() as $field_id => $field ) {
     129                        $value = array_key_exists( $field_id, $values ) ? $values[$field_id] : '';
     130
     131                        $is_empty = '' === $value || null === $value || array() === $value
     132                                || ( 'checkbox' === ( $field['type'] ?? '' ) && false === $value );
     133                        if ( true === ( $field['required'] ?? false ) && $is_empty ) {
     134                                return new WP_Error(
     135                                        'wlec_address_checkout_field_required',
     136                                        sprintf(
     137                                                /* translators: %s: checkout field label */
     138                                                __( 'Please fill in %s.', 'waloops-express-checkout-for-woocommerce' ),
     139                                                $field['label'] ?? ''
     140                                        ),
     141                                        array( 'field' => $field_id )
     142                                );
     143                        }
     144
     145                        if ( is_object( $service ) && method_exists( $service, 'validate_field' ) ) {
     146                                $validation = $service->validate_field( $field, $value );
     147                                if ( is_wp_error( $validation ) && $validation->has_errors() ) {
     148                                        return new WP_Error(
     149                                                'wlec_address_checkout_field_invalid',
     150                                                $validation->get_error_message(),
     151                                                array( 'field' => $field_id )
     152                                        );
     153                                }
     154                        }
     155                }
     156
     157                return true;
     158        }
     159
     160        /**
     161         * Render the dynamically registered address fields.
     162         */
     163        public static function render_checkout_fields() {
     164                $fields = self::get_checkout_fields();
     165                $values = self::get_checkout_field_values();
     166                if ( empty( $fields ) ) {
     167                        return;
     168                }
     169
     170                echo '<div class="wlec-field-row wlec-custom-checkout-fields">';
     171                foreach ( $fields as $field_id => $field ) {
     172                        $label    = ! empty( $field['optionalLabel'] ) && empty( $field['required'] ) ? $field['optionalLabel'] : ( $field['label'] ?? '' );
     173                        $required = true === ( $field['required'] ?? false );
     174                        $value    = $values[$field_id] ?? '';
     175
     176                        if ( 'checkbox' === ( $field['type'] ?? '' ) ) {
     177                                printf(
     178                                        '<label class="wlec-field-half"><input type="checkbox" data-wlec-checkout-field="%1$s" value="1" %2$s%3$s /> %4$s%5$s</label>',
     179                                        esc_attr( $field_id ),
     180                                        checked( true === $value || 1 === $value || '1' === $value, true, false ),
     181                                        $required ? ' required' : '',
     182                                        esc_html( $label ),
     183                                        $required ? ' <span class="wlec-required">*</span>' : ''
     184                                );
     185                                continue;
     186                        }
     187
     188                        printf(
     189                                '<label class="wlec-field-half">%1$s%2$s',
     190                                esc_html( $label ),
     191                                $required ? ' <span class="wlec-required">*</span>' : ''
     192                        );
     193
     194                        if ( 'select' === ( $field['type'] ?? '' ) ) {
     195                                printf( '<select data-wlec-checkout-field="%1$s"%2$s>', esc_attr( $field_id ), $required ? ' required' : '' );
     196                                foreach ( (array) ( $field['options'] ?? array() ) as $option_key => $option ) {
     197                                        $option_value = is_array( $option ) ? ( $option['value'] ?? '' ) : $option_key;
     198                                        $option_label = is_array( $option ) ? ( $option['label'] ?? '' ) : $option;
     199                                        printf(
     200                                                '<option value="%1$s" %2$s>%3$s</option>',
     201                                                esc_attr( $option_value ),
     202                                                selected( (string) $value, (string) $option_value, false ),
     203                                                esc_html( $option_label )
     204                                        );
     205                                }
     206                                echo '</select>';
     207                        } else {
     208                                $type       = 'date' === ( $field['type'] ?? '' ) ? 'date' : 'text';
     209                                $attributes = array(
     210                                        'autocomplete'    => 'autocomplete',
     211                                        'autocapitalize'  => 'autocapitalize',
     212                                        'inputmode'       => 'inputmode',
     213                                        'maxLength'       => 'maxlength',
     214                                        'min'             => 'min',
     215                                        'max'             => 'max',
     216                                        'pattern'         => 'pattern',
     217                                        'placeholder'     => 'placeholder',
     218                                        'step'            => 'step',
     219                                        'title'           => 'title',
     220                                );
     221                                $attribute_html = '';
     222                                foreach ( $attributes as $key => $attribute ) {
     223                                        if ( isset( $field['attributes'][$key] ) && '' !== (string) $field['attributes'][$key] ) {
     224                                                $attribute_html .= sprintf( ' %1$s="%2$s"', esc_attr( $attribute ), esc_attr( $field['attributes'][$key] ) );
     225                                        }
     226                                }
     227
     228                                printf(
     229                                        '<input type="%1$s" data-wlec-checkout-field="%2$s" value="%3$s"%4$s%5$s />',
     230                                        esc_attr( $type ),
     231                                        esc_attr( $field_id ),
     232                                        esc_attr( is_scalar( $value ) ? $value : '' ),
     233                                        $attribute_html, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     234                                        $required ? ' required' : ''
     235                                );
     236                        }
     237
     238                        echo '</label>';
     239                }
     240                echo '</div>';
     241        }
    18242
    19243        public static function init() {
    … …  
    96320                        'state'      => $state,
    97321                        'country'    => self::sanitize_country( get_user_meta( $user_id, "{$type}_country", true ) ),
     322                        'checkout_fields' => self::get_checkout_field_values( array(), $user_id ),
    98323                        'is_default' => true,
    99324                );
    … …  
    140365                        }
    141366                }
     367
     368                $checkout_fields = self::get_checkout_field_values(
     369                        $data,
     370                        get_current_user_id(),
     371                        isset( $data['checkout_fields'] ) && is_array( $data['checkout_fields'] ) ? $data['checkout_fields'] : array()
     372                );
     373                $field_valid = self::validate_checkout_field_values( $checkout_fields );
     374                if ( is_wp_error( $field_valid ) ) {
     375                        return $field_valid;
     376                }
     377
    142378                return true;
    143379        }
    … …  
    189425                        'state'      => sanitize_text_field( $data['state'] ),
    190426                        'country'    => self::sanitize_country( $data['country'] ?? '' ),
     427                        'checkout_fields' => self::get_checkout_field_values(
     428                                array(),
     429                                $user_id,
     430                                isset( $data['checkout_fields'] ) && is_array( $data['checkout_fields'] ) ? $data['checkout_fields'] : array()
     431                        ),
    191432                        'is_default' => ! empty( $data['is_default'] ) || empty( $addresses ),
    192433                );
    … …  
    277518                        update_user_meta( $user_id, "{$type}_postcode", $address['pincode'] );
    278519                        update_user_meta( $user_id, "{$type}_country", $address['country'] );
     520                        foreach ( (array) ( $address['checkout_fields'] ?? array() ) as $field_id => $value ) {
     521                                update_user_meta( $user_id, '_wc_' . $type . '/' . $field_id, $value );
     522                        }
    279523                }
    280524                update_user_meta( $user_id, 'billing_phone', $address['phone'] );
  • waloops-express-checkout-for-woocommerce/trunk/includes/class-wlec-cart-drawer.php

    r3710561 r3806775  
    5454                }
    5555                wp_enqueue_script( 'wlec-cart-drawer', WLEC_URL . 'assets/js/cart-drawer.js', array( 'jquery' ), WLEC_VERSION, true );
    56                 wp_enqueue_script( 'wlec-checkout-flow', WLEC_URL . 'assets/js/checkout-flow.js', array( 'jquery', 'wlec-cart-drawer' ), WLEC_VERSION, true );
     56                $checkout_flow_version = WLEC_VERSION . '.' . filemtime( WLEC_DIR . 'assets/js/checkout-flow.js' );
     57                wp_enqueue_script( 'wlec-checkout-flow', WLEC_URL . 'assets/js/checkout-flow.js', array( 'jquery', 'wlec-cart-drawer' ), $checkout_flow_version, true );
    5758
    5859                wp_localize_script( 'wlec-cart-drawer', 'WLEC', array(
    … …  
    113114                        // "…@wlec-otp.invalid" placeholder there instead of a real address.
    114115                        'user_email'         => self::get_prefill_email(),
     116                        'checkout_field_values' => WLEC_Address_Book::get_checkout_field_values(),
    115117                        'i18n'               => array(
    116118                                'adding'          => __( 'Adding…', 'waloops-express-checkout-for-woocommerce' ),
  • waloops-express-checkout-for-woocommerce/trunk/includes/class-wlec-checkout.php

    r3710446 r3806775  
    3535
    3636                add_action( 'woocommerce_checkout_order_processed', array( __CLASS__, 'capture_order_id' ), 10, 1 );
     37                add_action( 'woocommerce_checkout_create_order', array( __CLASS__, 'save_checkout_field_order_meta' ), 20, 2 );
    3738
    3839                // Payment-method pre-selection for the "full checkout page" fallback
    … …  
    168169                        wp_send_json_error( array( 'message' => $address->get_error_message() ) );
    169170                }
     171                $address['checkout_fields'] = WLEC_Address_Book::get_checkout_field_values(
     172                        $address,
     173                        $user_id,
     174                        isset( $posted['checkout_fields'] ) && is_array( $posted['checkout_fields'] ) ? $posted['checkout_fields'] : array()
     175                );
     176                $address_valid = WLEC_Address_Book::validate_address_fields( $address );
     177                if ( is_wp_error( $address_valid ) ) {
     178                        wp_send_json_error( array( 'message' => $address_valid->get_error_message() ) );
     179                }
    170180
    171181                $rate_id        = isset( $posted['rate_id'] ) ? sanitize_text_field( $posted['rate_id'] ) : '';
    … …  
    217227                $_POST['billing_phone']             = $address['phone'];
    218228                $_POST['billing_email']             = $email;
     229                $_POST['wlec_checkout_fields']      = wp_slash( $address['checkout_fields'] );
    219230
    220231                $_POST['shipping_first_name']       = $first_name;
    … …  
    329340                        wp_send_json_error( array( 'message' => $address->get_error_message() ) );
    330341                }
     342                $address['checkout_fields'] = WLEC_Address_Book::get_checkout_field_values(
     343                        $address,
     344                        $user_id,
     345                        isset( $posted['checkout_fields'] ) && is_array( $posted['checkout_fields'] ) ? $posted['checkout_fields'] : array()
     346                );
     347                $address_valid = WLEC_Address_Book::validate_address_fields( $address );
     348                if ( is_wp_error( $address_valid ) ) {
     349                        wp_send_json_error( array( 'message' => $address_valid->get_error_message() ) );
     350                }
    331351
    332352                $rate_id        = isset( $posted['rate_id'] ) ? sanitize_text_field( $posted['rate_id'] ) : '';
    … …  
    338358                $billing = self::resolve_billing_fields( $address, $user_id );
    339359                self::sync_wc_customer( $address, $billing );
     360                WC()->session->set( 'wlec_checkout_fields', $address['checkout_fields'] );
    340361
    341362                if ( $rate_id ) {
    … …  
    546567                WC()->customer->set_shipping_postcode( $address['pincode'] );
    547568                WC()->customer->set_shipping_country( $billing['country'] );
     569                foreach ( (array) ( $address['checkout_fields'] ?? array() ) as $field_id => $value ) {
     570                        WC()->customer->update_meta_data( '_wc_billing/' . $field_id, $value );
     571                        WC()->customer->update_meta_data( '_wc_shipping/' . $field_id, $value );
     572                }
    548573                WC()->customer->save();
     574        }
     575
     576        /**
     577         * Persist WooCommerce Additional Checkout Fields submitted through WLEC.
     578         *
     579         * @param WC_Order $order Order being created.
     580         * @param array    $data  Checkout data.
     581         */
     582        public static function save_checkout_field_order_meta( $order, $data ) {
     583                $values = array();
     584                if ( isset( $_POST['wlec_checkout_fields'] ) && is_array( $_POST['wlec_checkout_fields'] ) ) {
     585                        $values = WLEC_Address_Book::sanitize_checkout_field_values( wp_unslash( $_POST['wlec_checkout_fields'] ) );
     586                } elseif ( function_exists( 'WC' ) && WC()->session ) {
     587                        $session_values = WC()->session->get( 'wlec_checkout_fields', array() );
     588                        $is_fallback_checkout = ! empty( $_GET['wlec_payment_method'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- redirect marker only; no state-changing operation.
     589                        if ( $is_fallback_checkout && is_array( $session_values ) ) {
     590                                $values = WLEC_Address_Book::sanitize_checkout_field_values( $session_values );
     591                        }
     592                        WC()->session->__unset( 'wlec_checkout_fields' );
     593                }
     594
     595                foreach ( WLEC_Address_Book::get_checkout_fields() as $field_id => $field ) {
     596                        if ( ! array_key_exists( $field_id, $values ) ) {
     597                                continue;
     598                        }
     599                        $order->update_meta_data( '_wc_billing/' . $field_id, $values[$field_id] );
     600                        $order->update_meta_data( '_wc_shipping/' . $field_id, $values[$field_id] );
     601                }
    549602        }
    550603
    … …  
    576629                                // to fall back on the way the address_id lookup above has.
    577630                                'country'  => WLEC_Address_Book::sanitize_country( $posted['country'] ?? '' ),
     631                                'checkout_fields' => WLEC_Address_Book::get_checkout_field_values(
     632                                        array(),
     633                                        0,
     634                                        isset( $posted['checkout_fields'] ) && is_array( $posted['checkout_fields'] ) ? $posted['checkout_fields'] : array()
     635                                ),
    578636                        );
    579637                }
    … …  
    583641                        foreach ( $addresses as $address ) {
    584642                                if ( $address['id'] === $posted['address_id'] ) {
     643                                        $address['checkout_fields'] = WLEC_Address_Book::get_checkout_field_values( $address, $user_id );
    585644                                        return $address;
    586645                                }
  • waloops-express-checkout-for-woocommerce/trunk/readme.txt

    r3804301 r3806775  
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 1.0.17
     8Stable tag: 1.0.18
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    153153
    154154== Changelog ==
     155
     156= 1.0.18 =
     157* New: show WooCommerce Additional Checkout Fields registered for the address in Express Checkout, including saved-address support and order/customer metadata.
    155158
    156159= 1.0.17 =
    … …  
    225228== Upgrade Notice ==
    226229
     230= 1.0.18 =
     231WooCommerce address fields now appear in Express Checkout and are retained with saved addresses and orders.
     232
    227233= 1.0.5 =
    228234Fixes a stale total in the checkout Order Summary card.
  • waloops-express-checkout-for-woocommerce/trunk/templates/step-address-form.php

    r3710446 r3806775  
    8989                </label>
    9090        </div>
     91        <?php WLEC_Address_Book::render_checkout_fields(); ?>
    9192
    9293        <p class="wlec-step-error" role="alert"></p>
  • waloops-express-checkout-for-woocommerce/trunk/waloops-express-checkout-for-woocommerce.php

    r3804301 r3806775  
    44 * Plugin URI:        https://waloops.com/quick-checkout
    55 * Description:       A fast slide-in cart and a popup-or-sidebar express checkout for WooCommerce — WhatsApp OTP, email code and guest login, saved addresses, delivery and payment selection, Buy Now button and coupon suggestions.
    6  * Version:           1.0.17
     6 * Version:           1.0.18
    77 * Requires at least: 6.0
    88 * Requires PHP:      7.4
    … …  
    2626}
    2727
    28 define( 'WLEC_VERSION', '1.0.17' );
     28define( 'WLEC_VERSION', '1.0.18' );
    2929// Opt-in usage sharing + deactivation feedback (nothing is sent unless the admin clicks Allow, or submits the deactivation form).
    3030require_once __DIR__ . '/includes/class-waloops-telemetry.php';
Note: See TracChangeset for help on using the changeset viewer.