fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Variations swatches plugin not compatible with product filter plugin

Hi

We have raised this issue before.  We are picking up an interference with the woocommerce product filters plugin.   The variation swatches are loading perfectly on category urls and links, but when you filter, the variations swatches aren’t loading. Please can someone urgently assist?

Hakik Zaman

Hi Michele,

Thanks for reaching us.

We need an event from your filter plugin that should be triggered after new posts are loaded.

Just send this plugin to your plugin developer: https://wordpress.org/plugins/malinky-ajax-pagination/

And ask them to send triggers like the following as the Malinky Ajax Pagination plugin provides.
document.addEventListener(‘malinkyLoadPostsComplete’, function(e) {
console.log(‘LoadPostsComplete’);
});

Like this filter plugin: https://woocommerce.com/products/product-filters/
jQuery(document).ready(function( $ ){
// Your code in here
jQuery(window).on(‘wcpf_update_products’, function () {
console.log(‘Hi’);
});
});

Thank You

Hi  I’ve gotten this from the developers.  Please can you advise further?

 

jQuery( document ).on( ‘wpf_ajax_success’, function() { // new products are loaded in the page. Yay! } );

Hakik Zaman

Hi Michele,

Can you please give us temporary admin access to your site? So that I can help you further.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin and set the info here.

And add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Hakik Zaman

Hi Michele,

Please make sure whether you are using the object cache on your site or not.

If so, please clear your object cache from the server settings. If you don’t know how to do it, please contact hosting support to clear your object cache.

Note: I can see you have a snippet and I have already modified the snippet using Code Snippets plugin: https://paste.pics/MQ11I.

Please check now and let me know your feedback.

Thank You