Changeset 3362093
- Timestamp:
- 09/15/2025 10:13:54 PM (5 months ago)
- Location:
- wc-dpd
- Files:
-
- 90 added
- 3 edited
-
tags/8.2.1 (added)
-
tags/8.2.1/includes (added)
-
tags/8.2.1/includes/Ajax.php (added)
-
tags/8.2.1/includes/Assets.php (added)
-
tags/8.2.1/includes/Blocks.php (added)
-
tags/8.2.1/includes/Client.php (added)
-
tags/8.2.1/includes/Core.php (added)
-
tags/8.2.1/includes/DpdExport.php (added)
-
tags/8.2.1/includes/DpdExportSettings.php (added)
-
tags/8.2.1/includes/DpdParcelShopShippingMethod.php (added)
-
tags/8.2.1/includes/Email.php (added)
-
tags/8.2.1/includes/Hooks.php (added)
-
tags/8.2.1/includes/Notice.php (added)
-
tags/8.2.1/includes/Order.php (added)
-
tags/8.2.1/includes/OrderList.php (added)
-
tags/8.2.1/includes/OrderMetabox.php (added)
-
tags/8.2.1/includes/Shipping.php (added)
-
tags/8.2.1/includes/helpers.php (added)
-
tags/8.2.1/index.php (added)
-
tags/8.2.1/languages (added)
-
tags/8.2.1/languages/wc-dpd-sk_SK.mo (added)
-
tags/8.2.1/languages/wc-dpd-sk_SK.po (added)
-
tags/8.2.1/languages/wc-dpd.pot (added)
-
tags/8.2.1/public (added)
-
tags/8.2.1/public/js (added)
-
tags/8.2.1/public/main.js (added)
-
tags/8.2.1/public/mix-manifest.json (added)
-
tags/8.2.1/public/scripts (added)
-
tags/8.2.1/public/scripts/dpd-export-settings-admin-repeater.js (added)
-
tags/8.2.1/public/scripts/dpd-export-settings-admin-repeater.js.map (added)
-
tags/8.2.1/public/scripts/dpd-export-settings-admin.js (added)
-
tags/8.2.1/public/scripts/dpd-export-settings-admin.js.map (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-block-shipping-method.js (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-block-shipping-method.js.map (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-map-widget.js (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-map-widget.js.map (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-popup.js (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-popup.js.map (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-shipping-method-weight-by-package-repeater.js (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-shipping-method-weight-by-package-repeater.js.map (added)
-
tags/8.2.1/public/scripts/dpd-parcelshop-widget.js (added)
-
tags/8.2.1/public/styles (added)
-
tags/8.2.1/public/styles/dpd-export-repeater-settings-field.css (added)
-
tags/8.2.1/public/styles/dpd-export-repeater-settings-field.css.map (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-block-shipping-method.css (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-block-shipping-method.css.map (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-map-widget.css (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-map-widget.css.map (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-popup.css (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-popup.css.map (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-shipping-method-content.css (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-shipping-method-content.css.map (added)
-
tags/8.2.1/public/styles/dpd-parcelshop-widget.css (added)
-
tags/8.2.1/readme.txt (added)
-
tags/8.2.1/templates (added)
-
tags/8.2.1/templates/chosen-parcelshop-order-data.php (added)
-
tags/8.2.1/templates/parcelshop-map-widget.php (added)
-
tags/8.2.1/templates/parcelshop-popup.php (added)
-
tags/8.2.1/templates/parcelshop-shipping-method-content.php (added)
-
tags/8.2.1/vendor (added)
-
tags/8.2.1/vendor/autoload.php (added)
-
tags/8.2.1/vendor/composer (added)
-
tags/8.2.1/vendor/composer/ClassLoader.php (added)
-
tags/8.2.1/vendor/composer/InstalledVersions.php (added)
-
tags/8.2.1/vendor/composer/LICENSE (added)
-
tags/8.2.1/vendor/composer/autoload_classmap.php (added)
-
tags/8.2.1/vendor/composer/autoload_files.php (added)
-
tags/8.2.1/vendor/composer/autoload_namespaces.php (added)
-
tags/8.2.1/vendor/composer/autoload_psr4.php (added)
-
tags/8.2.1/vendor/composer/autoload_real.php (added)
-
tags/8.2.1/vendor/composer/autoload_static.php (added)
-
tags/8.2.1/vendor/composer/installed.json (added)
-
tags/8.2.1/vendor/composer/installed.php (added)
-
tags/8.2.1/vendor/composer/platform_check.php (added)
-
tags/8.2.1/vendor/league (added)
-
tags/8.2.1/vendor/league/iso3166 (added)
-
tags/8.2.1/vendor/league/iso3166/.yamllint (added)
-
tags/8.2.1/vendor/league/iso3166/LICENSE (added)
-
tags/8.2.1/vendor/league/iso3166/composer.json (added)
-
tags/8.2.1/vendor/league/iso3166/src (added)
-
tags/8.2.1/vendor/league/iso3166/src/Exception (added)
-
tags/8.2.1/vendor/league/iso3166/src/Exception/DomainException.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/Exception/ISO3166Exception.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/Exception/OutOfBoundsException.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/Guards.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/ISO3166.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/ISO3166DataProvider.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/ISO3166DataValidator.php (added)
-
tags/8.2.1/vendor/league/iso3166/src/ISO3166WithAliases.php (added)
-
tags/8.2.1/wc-dpd.php (added)
-
trunk/includes/DpdExport.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wc-dpd.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-dpd/trunk/includes/DpdExport.php
r3339385 r3362093 271 271 // Add country ISO code 272 272 $country = isset($data[self::CUSTOMER_COUNTRY_KEY]) && !empty($data[self::CUSTOMER_COUNTRY_KEY]) ? $data[self::CUSTOMER_COUNTRY_KEY] : ''; 273 $country_data = (new ISO3166())->alpha2($country); 274 $this->{self::CUSTOMER_COUNTRY_KEY} = !empty($country_data['numeric']) ? (int) $country_data['numeric'] : ''; 273 274 // Fix for Czech Republic - WooCommerce uses 'cs' but ISO3166 needs 'CZ' 275 if (strtolower($country) === 'cs') { 276 $country = 'CZ'; 277 } 278 279 try { 280 // Convert to uppercase for ISO3166 compatibility 281 $country_data = (new ISO3166())->alpha2(strtoupper($country)); 282 $this->{self::CUSTOMER_COUNTRY_KEY} = !empty($country_data['numeric']) ? (int) $country_data['numeric'] : ''; 283 } catch (Exception $e) { 284 // Log error and keep original value if country code is invalid 285 error_log('DPD Export: ' . $e->getMessage()); 286 $this->{self::CUSTOMER_COUNTRY_KEY} = $country; 287 } 275 288 } 276 289 -
wc-dpd/trunk/readme.txt
r3350089 r3362093 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.4 8 Stable tag: 8.2. 08 Stable tag: 8.2.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 62 62 63 63 == Changelog == 64 65 = 8.2.1 = 66 * Fixed Czech Republic country code mapping (WooCommerce 'cs' to ISO3166 'CZ') 64 67 65 68 = 8.2.0 = -
wc-dpd/trunk/wc-dpd.php
r3350089 r3362093 4 4 * Plugin Name: DPD SK for WooCommerce 5 5 * Description: DPD SK plugin for WooCommerce which exports orders to the DPD through their API 6 * Version: 8.2. 06 * Version: 8.2.1 7 7 * Author: Webikon 8 8 * Author URI: https://www.webikon.sk … … 15 15 * Requires PHP: 7.4 16 16 * WC requires at least: 7.0 17 * WC tested up to: 10.1. 117 * WC tested up to: 10.1.2 18 18 */ 19 19
Note: See TracChangeset
for help on using the changeset viewer.