diff --git a/CHANGELOG.md b/CHANGELOG.md
index 03acdf7..f4e740a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
# Changelog
All notable changes to the Tax Switch for Woocommerce plugin will be documented in this file.
+## [1.1.10] - 2024-11-05
+### Added
+- Compatibility for JetEngine Listing Grid 'infinity scroll'
+
## [1.1.9] - 2024-11-04
### Added
- Extra check for filtering backend and frontend AJAX requests (which adds compatibility for [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)).
diff --git a/README.md b/README.md
index 250e15a..3252fb2 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Tax Switch for WooCommerce
-Enhances WooCommerce by allowing users to toggle between displaying prices including or excluding VAT. This plugin adds a customizable switch on product pages and provides a flexible way to display both price versions.
+Enhances WooCommerce by allowing users to toggle between displaying prices including or excluding VAT. This plugin adds a customizable switch component and provides a flexible way to display both price versions.
diff --git a/README.txt b/README.txt
index 45e78cd..6bea7fd 100644
--- a/README.txt
+++ b/README.txt
@@ -3,7 +3,7 @@ Contributors: wijnbergdevelopments
Tags: woocommerce, tax, vat
Requires at least: 5.0
Tested up to: 6.6
-Stable tag: 1.1.9
+Stable tag: 1.1.10
Requires PHP: 7.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -11,8 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.
== Description ==
-
-Tax Switch for WooCommerce enhances your WooCommerce store by allowing users to toggle between displaying prices including or excluding VAT. This plugin adds a customizable switch on product pages and provides a flexible way to display both price versions.
+Tax Switch for WooCommerce enhances your WooCommerce store by allowing users to toggle between displaying prices including or excluding VAT. This plugin adds a customizable switch component and provides a flexible way to display both price versions.
Key features:
@@ -20,6 +19,7 @@ Key features:
* Gutenberg block support
* Shortcode for easy integration
* Flexible display options for prices with and without VAT
+* Saves the state of the switch for the user
For more information about this plugin, please visit the [plugin page](https://products.wijnberg.dev/product/wordpress/plugins/tax-switch-for-woocommerce/).
@@ -77,6 +77,9 @@ You can also use this shortcode in your theme files with the do_shortcode() func
Some WooCommerce Blocks are not fully compatible with this plugin as they do not use standard WooCommerce filters for price display. This is a known limitation of WooCommerce Blocks and not specific to this plugin. You can fix this by using WooCommerce shortcodes instead of the WooCommerce Blocks.
== Changelog ==
+= 1.1.10 =
+* Added compatibility for JetEngine Listing Grid 'infinity scroll'
+
= 1.1.9 =
* Added extra check for filtering backend and frontend AJAX requests (which adds compatibility for [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/))
* Fixed a bug where the admin request checks failed when Wordpress is installed in a subdirectory
diff --git a/block/src/block.json b/block/src/block.json
index 346ece6..ac76934 100644
--- a/block/src/block.json
+++ b/block/src/block.json
@@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "wdevs/tax-switch",
- "version": "1.1.9",
+ "version": "1.1.10",
"title": "Tax Switch for WooCommerce",
"category": "woocommerce",
"icon": "money-alt",
diff --git a/block/src/includes/ThirdPartyCompatibility.js b/block/src/includes/ThirdPartyCompatibility.js
index 66e2aa2..4775de4 100644
--- a/block/src/includes/ThirdPartyCompatibility.js
+++ b/block/src/includes/ThirdPartyCompatibility.js
@@ -20,20 +20,32 @@ class ThirdPartyCompatibility {
} );
jQuery( document ).ajaxSuccess( function ( event, xhr, settings ) {
- const methods = [
- 'get_variable_product_bulk_table', //Flycart Discount Rules for WooCommerce compatibility
- ];
-
- const isMethodMatched = methods.some( ( method ) =>
- settings.data.includes( method )
- );
-
- if ( isMethodMatched ) {
- setTimeout( function () {
- TaxSwitchHelper.setPriceClasses( originalTaxDisplay );
- }, 10 );
+ if ( settings && settings.data ) {
+ const methods = [
+ 'get_variable_product_bulk_table', //Flycart Discount Rules for WooCommerce compatibility
+ ];
+
+ const isMethodMatched = methods.some( ( method ) =>
+ settings.data.includes( method )
+ );
+
+ if ( isMethodMatched ) {
+ setTimeout( function () {
+ TaxSwitchHelper.setPriceClasses( originalTaxDisplay );
+ }, 10 );
+ }
}
} );
+
+ const thirdPartyEvents = [
+ 'jet-engine/listing-grid/after-load-more', //JetEngine Listing Grid 'infinity scroll' compatibility
+ ];
+
+ thirdPartyEvents.forEach( function ( eventName ) {
+ jQuery( document ).on( eventName, function ( event, response ) {
+ TaxSwitchHelper.setPriceClasses( originalTaxDisplay );
+ } );
+ } );
}
}
diff --git a/package.json b/package.json
index e17b684..d208ed1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "wdevs-tax-switch",
- "version": "1.1.9",
+ "version": "1.1.10",
"description": "Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.",
"author": "Wijnberg Developments",
"license": "GPL-2.0-or-later",
diff --git a/wdevs-tax-switch.php b/wdevs-tax-switch.php
index 360e1a2..bf2b2ca 100644
--- a/wdevs-tax-switch.php
+++ b/wdevs-tax-switch.php
@@ -16,7 +16,7 @@
* Plugin Name: Tax Switch for WooCommerce
* Plugin URI: https://wijnberg.dev
* Description: Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.
- * Version: 1.1.9
+ * Version: 1.1.10
* Author: Wijnberg Developments
* Author URI: https://wijnberg.dev/
* License: GPL-2.0+
@@ -41,7 +41,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
-define( 'WDEVS_TAX_SWITCH_VERSION', '1.1.9' );
+define( 'WDEVS_TAX_SWITCH_VERSION', '1.1.10' );
/**
* The code that runs during plugin activation.