Plugin Directory

Changeset 3342173


Ignore:
Timestamp:
08/10/2025 07:17:13 AM (8 months ago)
Author:
kirillbdev
Message:

Release 1.2.7

Location:
qodax-checkout-manager
Files:
85 added
3 edited

Legend:

Unmodified
Added
Removed
  • qodax-checkout-manager/trunk/qodax-checkout-manager.php

    r3338253 r3342173  
    44 * Plugin URI: https://kirillbdev.pro/qodax-checkout-manager?utm_source=plugin&utm_medium=referal
    55 * Description: Customize and manage checkout fields in your WooCommerce store with a simple and user-friendly interface.
    6  * Version: 1.2.6
     6 * Version: 1.2.7
    77 * Author: kirillbdev
    88 * License: GPLv3
     
    2121define('QODAX_CHECKOUT_MANAGER_PLUGIN_ENTRY', __FILE__);
    2222define('QODAX_CHECKOUT_MANAGER_PLUGIN_DIR', plugin_dir_path(__FILE__));
    23 define('QODAX_CHECKOUT_MANAGER_PLUGIN_VERSION', '1.2.6');
     23define('QODAX_CHECKOUT_MANAGER_PLUGIN_VERSION', '1.2.7');
    2424
    2525include_once __DIR__ . '/vendor/autoload.php';
  • qodax-checkout-manager/trunk/readme.txt

    r3338253 r3342173  
    77Requires at least: 5.4
    88Tested up to: 6.8
    9 Stable tag: 1.2.6
     9Stable tag: 1.2.7
    1010
    1111Customize and manage checkout fields in your WooCommerce store with a simple and user-friendly interface.
     
    7272== Changelog ==
    7373
     74= Version 1.2.7 / (10.08.2025) =
     75* Improved fields country localization.
     76
    7477= Version 1.2.6 / (02.08.2025) =
    7578* Improved compatibility with WC Ukraine Shipping and other 3rd party shipping plugins.
  • qodax-checkout-manager/trunk/src/Modules/Checkout.php

    r3338253 r3342173  
    2727        add_filter('woocommerce_checkout_fields' , [ $this, 'overrideCheckoutFields' ], 1000);
    2828        add_filter('woocommerce_checkout_fields', [ $this, 'validateFields' ], 1005);
     29
    2930        add_filter('woocommerce_get_country_locale', [$this, 'overrideCountryLocale']);
     31        add_filter('woocommerce_get_country_locale_default', [$this, 'overrideCountryLocaleDefault']);
    3032        add_filter('woocommerce_get_country_locale_base', [$this, 'overrideCountryLocaleDefault']);
     33
    3134        add_action('woocommerce_checkout_update_order_meta', [ $this, 'updateOrderMeta' ]);
    3235        add_action('woocommerce_admin_order_data_after_billing_address', [ $this, 'displayBillingOrderMeta' ]);
     
    5962        $fieldsToCheck = ['address_1', 'postcode', 'city', 'state'];
    6063        foreach ($dbFields as $field) {
     64            if ($field['section'] === 'shipping') {
     65                continue;
     66                // todo: think how to do this by clear way
     67            }
     68
    6169            $fieldName = str_replace(['billing_', 'shipping_'], '', $field['field_name']);
    6270            if (in_array($fieldName, $fieldsToCheck) && !isset($preparedFields[$fieldName])) {
     
    8492        $fieldsToCheck = ['address_1', 'postcode', 'city', 'state'];
    8593        foreach ($dbFields as $field) {
     94            if ($field['section'] === 'shipping') {
     95                continue;
     96                // todo: think how to do this by clear way
     97            }
     98
    8699            $fieldName = str_replace(['billing_', 'shipping_'], '', $field['field_name']);
    87100            if (in_array($fieldName, $fieldsToCheck) && !isset($preparedFields[$fieldName])) {
Note: See TracChangeset for help on using the changeset viewer.