Changeset 3417485
- Timestamp:
- 12/11/2025 02:47:03 PM (4 months ago)
- Location:
- tax-switch-for-woocommerce
- Files:
-
- 104 added
- 9 edited
-
tags/1.6.4 (added)
-
tags/1.6.4/CHANGELOG.md (added)
-
tags/1.6.4/LICENSE.txt (added)
-
tags/1.6.4/README.md (added)
-
tags/1.6.4/README.txt (added)
-
tags/1.6.4/admin (added)
-
tags/1.6.4/admin/class-wdevs-tax-switch-admin.php (added)
-
tags/1.6.4/admin/index.php (added)
-
tags/1.6.4/admin/js (added)
-
tags/1.6.4/admin/js/wdevs-tax-switch-woocommerce.js (added)
-
tags/1.6.4/admin/partials (added)
-
tags/1.6.4/admin/partials/section-wdevs-tax-switch-shortcode.php (added)
-
tags/1.6.4/build (added)
-
tags/1.6.4/build/label (added)
-
tags/1.6.4/build/label/block.json (added)
-
tags/1.6.4/build/label/index-rtl.css (added)
-
tags/1.6.4/build/label/index.asset.php (added)
-
tags/1.6.4/build/label/index.css (added)
-
tags/1.6.4/build/label/index.js (added)
-
tags/1.6.4/build/label/style-index-rtl.css (added)
-
tags/1.6.4/build/label/style-index.css (added)
-
tags/1.6.4/build/label/view.asset.php (added)
-
tags/1.6.4/build/label/view.js (added)
-
tags/1.6.4/build/shared (added)
-
tags/1.6.4/build/shared/shared.asset.php (added)
-
tags/1.6.4/build/shared/shared.js (added)
-
tags/1.6.4/build/switch (added)
-
tags/1.6.4/build/switch/advanced-product-fields-for-woocommerce.asset.php (added)
-
tags/1.6.4/build/switch/advanced-product-fields-for-woocommerce.js (added)
-
tags/1.6.4/build/switch/block.json (added)
-
tags/1.6.4/build/switch/facetwp.asset.php (added)
-
tags/1.6.4/build/switch/facetwp.js (added)
-
tags/1.6.4/build/switch/fibofilters.asset.php (added)
-
tags/1.6.4/build/switch/fibofilters.js (added)
-
tags/1.6.4/build/switch/index-rtl.css (added)
-
tags/1.6.4/build/switch/index.asset.php (added)
-
tags/1.6.4/build/switch/index.css (added)
-
tags/1.6.4/build/switch/index.js (added)
-
tags/1.6.4/build/switch/kapee-theme.asset.php (added)
-
tags/1.6.4/build/switch/kapee-theme.js (added)
-
tags/1.6.4/build/switch/product-extras-for-woocommerce.asset.php (added)
-
tags/1.6.4/build/switch/product-extras-for-woocommerce.js (added)
-
tags/1.6.4/build/switch/style-index-rtl.css (added)
-
tags/1.6.4/build/switch/style-index.css (added)
-
tags/1.6.4/build/switch/view.asset.php (added)
-
tags/1.6.4/build/switch/view.js (added)
-
tags/1.6.4/build/switch/woocommerce-measurement-price-calculator.asset.php (added)
-
tags/1.6.4/build/switch/woocommerce-measurement-price-calculator.js (added)
-
tags/1.6.4/build/switch/woocommerce-product-addons.asset.php (added)
-
tags/1.6.4/build/switch/woocommerce-product-addons.js (added)
-
tags/1.6.4/build/switch/woocommerce-quantity-manager.asset.php (added)
-
tags/1.6.4/build/switch/woocommerce-quantity-manager.js (added)
-
tags/1.6.4/build/switch/woocommerce-tiered-price-table.asset.php (added)
-
tags/1.6.4/build/switch/woocommerce-tiered-price-table.js (added)
-
tags/1.6.4/build/switch/woocommerce-tm-extra-product-options.asset.php (added)
-
tags/1.6.4/build/switch/woocommerce-tm-extra-product-options.js (added)
-
tags/1.6.4/build/switch/woodmart-theme.asset.php (added)
-
tags/1.6.4/build/switch/woodmart-theme.js (added)
-
tags/1.6.4/build/switch/yith-woocommerce-product-add-ons.asset.php (added)
-
tags/1.6.4/build/switch/yith-woocommerce-product-add-ons.js (added)
-
tags/1.6.4/includes (added)
-
tags/1.6.4/includes/assets (added)
-
tags/1.6.4/includes/assets/css (added)
-
tags/1.6.4/includes/assets/css/wdevs-tax-switch-shared.css (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-activator.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-block-label.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-block-shared.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-block-switch.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-block.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-compatibility.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-deactivator.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-loader.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-mini-cart-context.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch-woocommerce.php (added)
-
tags/1.6.4/includes/class-wdevs-tax-switch.php (added)
-
tags/1.6.4/includes/index.php (added)
-
tags/1.6.4/includes/trait-wdevs-tax-switch-display.php (added)
-
tags/1.6.4/includes/trait-wdevs-tax-switch-helper.php (added)
-
tags/1.6.4/includes/trait-wdevs-tax-switch-plugins.php (added)
-
tags/1.6.4/languages (added)
-
tags/1.6.4/languages/build.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-en_US.l10n.php (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-en_US.mo (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-en_US.po (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-nl_NL.mo (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-nl_NL.po (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-sv_SE.mo (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce-sv_SE.po (added)
-
tags/1.6.4/languages/tax-switch-for-woocommerce.pot (added)
-
tags/1.6.4/public (added)
-
tags/1.6.4/public/class-wdevs-tax-switch-public.php (added)
-
tags/1.6.4/public/css (added)
-
tags/1.6.4/public/css/wdevs-tax-switch-public.css (added)
-
tags/1.6.4/public/index.php (added)
-
tags/1.6.4/uninstall.php (added)
-
tags/1.6.4/wdevs-tax-switch.php (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/README.md (modified) (1 diff)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/build/label/block.json (modified) (1 diff)
-
trunk/build/switch/block.json (modified) (1 diff)
-
trunk/includes/class-wdevs-tax-switch-compatibility.php (modified) (1 diff)
-
trunk/includes/class-wdevs-tax-switch.php (modified) (1 diff)
-
trunk/includes/trait-wdevs-tax-switch-display.php (modified) (1 diff)
-
trunk/wdevs-tax-switch.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tax-switch-for-woocommerce/trunk/CHANGELOG.md
r3410740 r3417485 1 1 # Changelog 2 2 All notable changes to the Tax Switch for WooCommerce plugin will be documented in this file. 3 4 ## [1.6.4] - 2025-12-08 5 ### Added 6 - Compatibility for YITH WooCommerce Role Based Prices 3 7 4 8 ## [1.6.3] - 2025-12-04 -
tax-switch-for-woocommerce/trunk/README.md
r3410740 r3417485 220 220 - LiteSpeed Cache 221 221 - Elementor Pro 222 - YITH WooCommerce Role Based Prices 222 223 223 224 If you encounter any conflicts with other themes or plugins, please report them by opening an issue or through our website. -
tax-switch-for-woocommerce/trunk/README.txt
r3410740 r3417485 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.6. 36 Stable tag: 1.6.4 7 7 Requires PHP: 7.2 8 8 License: GPL-2.0+ … … 205 205 * LiteSpeed Cache 206 206 * Elementor Pro 207 * YITH WooCommerce Role Based Prices 207 208 208 209 If you encounter any compatibility issues with other plugins or themes, please let us know. Your feedback helps us improve the plugin and extend compatibility to more third-party solutions. … … 241 242 242 243 == Changelog == 244 = 1.6.4 = 245 * Added compatibility for YITH WooCommerce Role Based Prices 246 243 247 = 1.6.3 = 244 248 * Added new style: `flat pill` -
tax-switch-for-woocommerce/trunk/build/label/block.json
r3410740 r3417485 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch-label", 5 "version": "1.6. 3",5 "version": "1.6.4", 6 6 "title": "Tax Switch text label", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/build/switch/block.json
r3410740 r3417485 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch", 5 "version": "1.6. 3",5 "version": "1.6.4", 6 6 "title": "Tax Switch for WooCommerce", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-compatibility.php
r3405724 r3417485 402 402 } 403 403 404 /** 405 * Wrap YITH Role Based Prices suffix with alternate tax display. 406 * 407 * @param string $suffix Existing suffix HTML. 408 * @param YITH_Role_Based_Prices_Product $yith_product Instance used by YITH. 409 * 410 * @return string 411 * @since 1.6.4 412 */ 413 public function wrap_yith_price_suffix( $suffix, $yith_product ) { 414 if ( empty( trim( $suffix ) ) ) { 415 return $suffix; 416 } 417 418 if ( str_contains( $suffix, 'wts-price-wrapper' ) || str_contains( $suffix, 'wts-price-container' ) ) { 419 return $suffix; 420 } 421 422 if ( $this->should_hide_on_current_page() ) { 423 return $suffix; 424 } 425 426 $shop_prices_include_tax = $this->shop_displays_price_including_tax_by_default(); 427 428 // Get VAT text options 429 $incl_vat_text = $this->get_option_text( 'wdevs_tax_switch_incl_vat', __( 'Incl. VAT', 'tax-switch-for-woocommerce' ) ); 430 $excl_vat_text = $this->get_option_text( 'wdevs_tax_switch_excl_vat', __( 'Excl. VAT', 'tax-switch-for-woocommerce' ) ); 431 432 if ( $shop_prices_include_tax ) { 433 $vat_text = $incl_vat_text; 434 $alternate_vat_text = $excl_vat_text; 435 } else { 436 $vat_text = $excl_vat_text; 437 $alternate_vat_text = $incl_vat_text; 438 } 439 440 $html = $this->wrap_price_displays( '', $shop_prices_include_tax, $vat_text, $alternate_vat_text ); 441 442 return $html; 443 } 444 404 445 } -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch.php
r3405724 r3417485 355 355 $this->loader->add_filter( 'wdevs_tax_switch_current_product', $plugin_compatibility, 'set_product_for_woocommerce_product_bundles', 10, 1 ); 356 356 } 357 358 // YITH WooCommerce Role Based Prices 359 if ( $this->is_plugin_active( 'yith-woocommerce-role-based-prices-premium/init.php' ) ) { 360 $this->loader->add_filter( 361 'yith_role_based_prices_get_price_suffix', 362 $plugin_compatibility, 363 'wrap_yith_price_suffix', 364 PHP_INT_MAX, 365 2 366 ); 367 } 357 368 } 358 369 } -
tax-switch-for-woocommerce/trunk/includes/trait-wdevs-tax-switch-display.php
r3277044 r3417485 59 59 60 60 return sprintf( 61 '<span class="wts-price-container">%s <span class="wts-price-wrapper"><span class="%s wts-active" ><span class="wts-vat-text">%s</span></span><span class="%s wts-inactive"><span class="wts-vat-text">%s</span></span></span></span>',61 '<span class="wts-price-container">%s <span class="wts-price-wrapper"><span class="%s wts-active"><span class="wts-vat-text">%s</span></span><span class="%s wts-inactive"><span class="wts-vat-text">%s</span></span></span></span>', 62 62 $price_html, 63 63 $classes[0], -
tax-switch-for-woocommerce/trunk/wdevs-tax-switch.php
r3410740 r3417485 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. 319 * Version: 1.6.4 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. 3' );43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.4' ); 44 44 45 45 /**
Note: See TracChangeset
for help on using the changeset viewer.