Changeset 3425544
- Timestamp:
- 12/22/2025 05:19:02 PM (3 months ago)
- Location:
- tax-switch-for-woocommerce
- Files:
-
- 104 added
- 7 edited
-
tags/1.6.5 (added)
-
tags/1.6.5/CHANGELOG.md (added)
-
tags/1.6.5/LICENSE.txt (added)
-
tags/1.6.5/README.md (added)
-
tags/1.6.5/README.txt (added)
-
tags/1.6.5/admin (added)
-
tags/1.6.5/admin/class-wdevs-tax-switch-admin.php (added)
-
tags/1.6.5/admin/index.php (added)
-
tags/1.6.5/admin/js (added)
-
tags/1.6.5/admin/js/wdevs-tax-switch-woocommerce.js (added)
-
tags/1.6.5/admin/partials (added)
-
tags/1.6.5/admin/partials/section-wdevs-tax-switch-shortcode.php (added)
-
tags/1.6.5/build (added)
-
tags/1.6.5/build/label (added)
-
tags/1.6.5/build/label/block.json (added)
-
tags/1.6.5/build/label/index-rtl.css (added)
-
tags/1.6.5/build/label/index.asset.php (added)
-
tags/1.6.5/build/label/index.css (added)
-
tags/1.6.5/build/label/index.js (added)
-
tags/1.6.5/build/label/style-index-rtl.css (added)
-
tags/1.6.5/build/label/style-index.css (added)
-
tags/1.6.5/build/label/view.asset.php (added)
-
tags/1.6.5/build/label/view.js (added)
-
tags/1.6.5/build/shared (added)
-
tags/1.6.5/build/shared/shared.asset.php (added)
-
tags/1.6.5/build/shared/shared.js (added)
-
tags/1.6.5/build/switch (added)
-
tags/1.6.5/build/switch/advanced-product-fields-for-woocommerce.asset.php (added)
-
tags/1.6.5/build/switch/advanced-product-fields-for-woocommerce.js (added)
-
tags/1.6.5/build/switch/block.json (added)
-
tags/1.6.5/build/switch/facetwp.asset.php (added)
-
tags/1.6.5/build/switch/facetwp.js (added)
-
tags/1.6.5/build/switch/fibofilters.asset.php (added)
-
tags/1.6.5/build/switch/fibofilters.js (added)
-
tags/1.6.5/build/switch/index-rtl.css (added)
-
tags/1.6.5/build/switch/index.asset.php (added)
-
tags/1.6.5/build/switch/index.css (added)
-
tags/1.6.5/build/switch/index.js (added)
-
tags/1.6.5/build/switch/kapee-theme.asset.php (added)
-
tags/1.6.5/build/switch/kapee-theme.js (added)
-
tags/1.6.5/build/switch/product-extras-for-woocommerce.asset.php (added)
-
tags/1.6.5/build/switch/product-extras-for-woocommerce.js (added)
-
tags/1.6.5/build/switch/style-index-rtl.css (added)
-
tags/1.6.5/build/switch/style-index.css (added)
-
tags/1.6.5/build/switch/view.asset.php (added)
-
tags/1.6.5/build/switch/view.js (added)
-
tags/1.6.5/build/switch/woocommerce-measurement-price-calculator.asset.php (added)
-
tags/1.6.5/build/switch/woocommerce-measurement-price-calculator.js (added)
-
tags/1.6.5/build/switch/woocommerce-product-addons.asset.php (added)
-
tags/1.6.5/build/switch/woocommerce-product-addons.js (added)
-
tags/1.6.5/build/switch/woocommerce-quantity-manager.asset.php (added)
-
tags/1.6.5/build/switch/woocommerce-quantity-manager.js (added)
-
tags/1.6.5/build/switch/woocommerce-tiered-price-table.asset.php (added)
-
tags/1.6.5/build/switch/woocommerce-tiered-price-table.js (added)
-
tags/1.6.5/build/switch/woocommerce-tm-extra-product-options.asset.php (added)
-
tags/1.6.5/build/switch/woocommerce-tm-extra-product-options.js (added)
-
tags/1.6.5/build/switch/woodmart-theme.asset.php (added)
-
tags/1.6.5/build/switch/woodmart-theme.js (added)
-
tags/1.6.5/build/switch/yith-woocommerce-product-add-ons.asset.php (added)
-
tags/1.6.5/build/switch/yith-woocommerce-product-add-ons.js (added)
-
tags/1.6.5/includes (added)
-
tags/1.6.5/includes/assets (added)
-
tags/1.6.5/includes/assets/css (added)
-
tags/1.6.5/includes/assets/css/wdevs-tax-switch-shared.css (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-activator.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-block-label.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-block-shared.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-block-switch.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-block.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-compatibility.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-deactivator.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-loader.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-mini-cart-context.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch-woocommerce.php (added)
-
tags/1.6.5/includes/class-wdevs-tax-switch.php (added)
-
tags/1.6.5/includes/index.php (added)
-
tags/1.6.5/includes/trait-wdevs-tax-switch-display.php (added)
-
tags/1.6.5/includes/trait-wdevs-tax-switch-helper.php (added)
-
tags/1.6.5/includes/trait-wdevs-tax-switch-plugins.php (added)
-
tags/1.6.5/languages (added)
-
tags/1.6.5/languages/build.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-en_US.l10n.php (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-en_US.mo (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-en_US.po (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-nl_NL.mo (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-nl_NL.po (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-sv_SE.mo (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce-sv_SE.po (added)
-
tags/1.6.5/languages/tax-switch-for-woocommerce.pot (added)
-
tags/1.6.5/public (added)
-
tags/1.6.5/public/class-wdevs-tax-switch-public.php (added)
-
tags/1.6.5/public/css (added)
-
tags/1.6.5/public/css/wdevs-tax-switch-public.css (added)
-
tags/1.6.5/public/index.php (added)
-
tags/1.6.5/uninstall.php (added)
-
tags/1.6.5/wdevs-tax-switch.php (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/build/label/block.json (modified) (1 diff)
-
trunk/build/switch/block.json (modified) (1 diff)
-
trunk/includes/class-wdevs-tax-switch.php (modified) (1 diff)
-
trunk/public/class-wdevs-tax-switch-public.php (modified) (4 diffs)
-
trunk/wdevs-tax-switch.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tax-switch-for-woocommerce/trunk/CHANGELOG.md
r3417485 r3425544 2 2 All notable changes to the Tax Switch for WooCommerce plugin will be documented in this file. 3 3 4 ## [1.6.4] - 2025-12-08 4 ## [1.6.5] - 2025-12-22 5 ### Updated 6 - Skip price wrapping in coupon min/max error messages 7 8 ## [1.6.4] - 2025-12-11 5 9 ### Added 6 10 - Compatibility for YITH WooCommerce Role Based Prices -
tax-switch-for-woocommerce/trunk/README.txt
r3417485 r3425544 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.6. 46 Stable tag: 1.6.5 7 7 Requires PHP: 7.2 8 8 License: GPL-2.0+ … … 242 242 243 243 == Changelog == 244 = 1.6.5 = 245 * Skip price wrapping in coupon min/max error messages 246 244 247 = 1.6.4 = 245 248 * Added compatibility for YITH WooCommerce Role Based Prices -
tax-switch-for-woocommerce/trunk/build/label/block.json
r3417485 r3425544 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch-label", 5 "version": "1.6. 4",5 "version": "1.6.5", 6 6 "title": "Tax Switch text label", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/build/switch/block.json
r3417485 r3425544 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch", 5 "version": "1.6. 4",5 "version": "1.6.5", 6 6 "title": "Tax Switch for WooCommerce", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch.php
r3417485 r3425544 215 215 $this->loader->add_filter( 'woocommerce_countries_inc_tax_or_vat', $plugin_public, 'wrap_inc_label', PHP_INT_MAX, 1 ); 216 216 $this->loader->add_filter( 'woocommerce_countries_ex_tax_or_vat', $plugin_public, 'wrap_ex_label', PHP_INT_MAX, 1 ); 217 $this->loader->add_filter( 'woocommerce_coupon_get_minimum_amount', $plugin_public, 'is_coupon_error_message', 10, 1 ); 218 $this->loader->add_filter( 'woocommerce_coupon_get_maximum_amount', $plugin_public, 'is_coupon_error_message', 10, 1 ); 217 219 218 220 // B2B Market -
tax-switch-for-woocommerce/trunk/public/class-wdevs-tax-switch-public.php
r3402617 r3425544 44 44 45 45 /** 46 * Skip wrapping the next wc_price() call. 47 * 48 * @since 1.6.5 49 * @var bool 50 */ 51 private $skip_next_wc_price_wrap = false; 52 53 /** 46 54 * Initialize the class and set its properties. 47 55 * … … 85 93 86 94 if ( $this->is_file_context() ) { 95 return $return; 96 } 97 98 if ( $this->should_skip_next_price_wrap() ) { 87 99 return $return; 88 100 } … … 224 236 */ 225 237 private function should_be_disabled_in_action() { 226 227 238 //compatibility with YITH WooCommerce Product Add Ons select 228 239 if ( did_filter( 'yith_wapo_option_price' ) ) { … … 238 249 } 239 250 251 /** 252 * Disable price wrapping in coupon error messages. 253 * Reason 1: mostly called from cart/checkout. Reason 2: HTML is stripped from these messages. 254 * 255 * @param mixed $amount Coupon amount. 256 * @return mixed 257 * @since 1.6.5 258 */ 259 public function is_coupon_error_message( $amount ) { 260 $this->skip_next_wc_price_wrap = true; 261 return $amount; 262 } 263 264 /** 265 * Check if the next wc_price() call should be skipped. 266 * 267 * @return bool 268 * @since 1.6.5 269 */ 270 public function should_skip_next_price_wrap() { 271 if ( $this->skip_next_wc_price_wrap ) { 272 $this->skip_next_wc_price_wrap = false; 273 return true; 274 } 275 276 return false; 277 } 278 240 279 } -
tax-switch-for-woocommerce/trunk/wdevs-tax-switch.php
r3417485 r3425544 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.6. 419 * Version: 1.6.5 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.6. 4' );43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.5' ); 44 44 45 45 /**
Note: See TracChangeset
for help on using the changeset viewer.