Changeset 3374836
- Timestamp:
- 10/08/2025 06:56:26 AM (6 months ago)
- Location:
- tax-switch-for-woocommerce
- Files:
-
- 98 added
- 5 edited
-
tags/1.5.18 (added)
-
tags/1.5.18/LICENSE.txt (added)
-
tags/1.5.18/README.txt (added)
-
tags/1.5.18/admin (added)
-
tags/1.5.18/admin/class-wdevs-tax-switch-admin.php (added)
-
tags/1.5.18/admin/index.php (added)
-
tags/1.5.18/admin/js (added)
-
tags/1.5.18/admin/js/wdevs-tax-switch-woocommerce.js (added)
-
tags/1.5.18/admin/partials (added)
-
tags/1.5.18/admin/partials/section-wdevs-tax-switch-shortcode.php (added)
-
tags/1.5.18/build (added)
-
tags/1.5.18/build/label (added)
-
tags/1.5.18/build/label/block.json (added)
-
tags/1.5.18/build/label/index-rtl.css (added)
-
tags/1.5.18/build/label/index.asset.php (added)
-
tags/1.5.18/build/label/index.css (added)
-
tags/1.5.18/build/label/index.js (added)
-
tags/1.5.18/build/label/style-index-rtl.css (added)
-
tags/1.5.18/build/label/style-index.css (added)
-
tags/1.5.18/build/label/view.asset.php (added)
-
tags/1.5.18/build/label/view.js (added)
-
tags/1.5.18/build/shared (added)
-
tags/1.5.18/build/shared/shared.asset.php (added)
-
tags/1.5.18/build/shared/shared.js (added)
-
tags/1.5.18/build/switch (added)
-
tags/1.5.18/build/switch/advanced-product-fields-for-woocommerce.asset.php (added)
-
tags/1.5.18/build/switch/advanced-product-fields-for-woocommerce.js (added)
-
tags/1.5.18/build/switch/block.json (added)
-
tags/1.5.18/build/switch/fibofilters.asset.php (added)
-
tags/1.5.18/build/switch/fibofilters.js (added)
-
tags/1.5.18/build/switch/index-rtl.css (added)
-
tags/1.5.18/build/switch/index.asset.php (added)
-
tags/1.5.18/build/switch/index.css (added)
-
tags/1.5.18/build/switch/index.js (added)
-
tags/1.5.18/build/switch/kapee-theme.asset.php (added)
-
tags/1.5.18/build/switch/kapee-theme.js (added)
-
tags/1.5.18/build/switch/product-extras-for-woocommerce.asset.php (added)
-
tags/1.5.18/build/switch/product-extras-for-woocommerce.js (added)
-
tags/1.5.18/build/switch/style-index-rtl.css (added)
-
tags/1.5.18/build/switch/style-index.css (added)
-
tags/1.5.18/build/switch/view.asset.php (added)
-
tags/1.5.18/build/switch/view.js (added)
-
tags/1.5.18/build/switch/woocommerce-measurement-price-calculator.asset.php (added)
-
tags/1.5.18/build/switch/woocommerce-measurement-price-calculator.js (added)
-
tags/1.5.18/build/switch/woocommerce-product-addons.asset.php (added)
-
tags/1.5.18/build/switch/woocommerce-product-addons.js (added)
-
tags/1.5.18/build/switch/woocommerce-quantity-manager.asset.php (added)
-
tags/1.5.18/build/switch/woocommerce-quantity-manager.js (added)
-
tags/1.5.18/build/switch/woocommerce-tiered-price-table.asset.php (added)
-
tags/1.5.18/build/switch/woocommerce-tiered-price-table.js (added)
-
tags/1.5.18/build/switch/woocommerce-tm-extra-product-options.asset.php (added)
-
tags/1.5.18/build/switch/woocommerce-tm-extra-product-options.js (added)
-
tags/1.5.18/build/switch/yith-woocommerce-product-add-ons.asset.php (added)
-
tags/1.5.18/build/switch/yith-woocommerce-product-add-ons.js (added)
-
tags/1.5.18/includes (added)
-
tags/1.5.18/includes/assets (added)
-
tags/1.5.18/includes/assets/css (added)
-
tags/1.5.18/includes/assets/css/wdevs-tax-switch-shared.css (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-activator.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-block-label.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-block-shared.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-block-switch.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-block.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-compatibility.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-deactivator.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-loader.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-mini-cart-context.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch-woocommerce.php (added)
-
tags/1.5.18/includes/class-wdevs-tax-switch.php (added)
-
tags/1.5.18/includes/index.php (added)
-
tags/1.5.18/includes/trait-wdevs-tax-switch-display.php (added)
-
tags/1.5.18/includes/trait-wdevs-tax-switch-helper.php (added)
-
tags/1.5.18/includes/trait-wdevs-tax-switch-plugins.php (added)
-
tags/1.5.18/languages (added)
-
tags/1.5.18/languages/build.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-en_US.l10n.php (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-en_US.mo (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-en_US.po (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-nl_NL.mo (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-nl_NL.po (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-sv_SE.mo (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce-sv_SE.po (added)
-
tags/1.5.18/languages/tax-switch-for-woocommerce.pot (added)
-
tags/1.5.18/public (added)
-
tags/1.5.18/public/class-wdevs-tax-switch-public.php (added)
-
tags/1.5.18/public/css (added)
-
tags/1.5.18/public/css/wdevs-tax-switch-public.css (added)
-
tags/1.5.18/public/index.php (added)
-
tags/1.5.18/uninstall.php (added)
-
tags/1.5.18/wdevs-tax-switch.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/build/label/block.json (modified) (1 diff)
-
trunk/build/switch/block.json (modified) (1 diff)
-
trunk/includes/trait-wdevs-tax-switch-helper.php (modified) (2 diffs)
-
trunk/wdevs-tax-switch.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tax-switch-for-woocommerce/trunk/README.txt
r3370439 r3374836 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1.5.1 76 Stable tag: 1.5.18 7 7 Requires PHP: 7.2 8 8 License: GPL-2.0+ … … 233 233 234 234 == Changelog == 235 = 1.5.18 = 236 * Fixed incorrect tax calculation for variation products loaded via AJAX 237 235 238 = 1.5.17 = 236 239 * Tested WooCommerce 10.2.2 -
tax-switch-for-woocommerce/trunk/build/label/block.json
r3370439 r3374836 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch-label", 5 "version": "1.5.1 7",5 "version": "1.5.18", 6 6 "title": "Tax Switch text label", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/build/switch/block.json
r3370439 r3374836 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch", 5 "version": "1.5.1 7",5 "version": "1.5.18", 6 6 "title": "Tax Switch for WooCommerce", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/includes/trait-wdevs-tax-switch-helper.php
r3363906 r3374836 127 127 128 128 if ( ! $product ) { 129 $product = wc_get_product();129 $product = $this->get_current_product(); 130 130 } 131 131 … … 319 319 } 320 320 321 /** 322 * Get the current product, handling AJAX variation requests 323 * 324 * During AJAX variation requests, there is no global $post context, 325 * so we need to manually retrieve the variation product using the 326 * same logic as WooCommerce uses in WC_AJAX::get_variation() 327 * 328 * @return WC_Product|null The current product or null if not available 329 * @since 1.5.18 330 */ 331 public function get_current_product() { 332 if ( doing_action( 'wc_ajax_get_variation' ) && ! empty( $_POST['product_id'] ) ) { 333 $variable_product = wc_get_product( absint( $_POST['product_id'] ) ); 334 335 if ( $variable_product ) { 336 $data_store = WC_Data_Store::load( 'product' ); 337 $variation_id = $data_store->find_matching_product_variation( $variable_product, wp_unslash( $_POST ) ); 338 339 if ( $variation_id ) { 340 return wc_get_product( $variation_id ); 341 } 342 } 343 344 } 345 346 return wc_get_product(); 347 } 348 321 349 } -
tax-switch-for-woocommerce/trunk/wdevs-tax-switch.php
r3370439 r3374836 17 17 * Plugin URI: https://wijnberg.dev 18 18 * Description: Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store. 19 * Version: 1.5.1 719 * Version: 1.5.18 20 20 * Author: Wijnberg Developments 21 21 * Author URI: https://wijnberg.dev/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.5.1 7' );43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.5.18' ); 44 44 45 45 /**
Note: See TracChangeset
for help on using the changeset viewer.