Plugin not working on filter

Matt Loeffler

Hi

 

I’m having an issue with the plugin and the default “add to cart” setting not working when product filter is passed.

 

Please review this page and select a box on the left, once filtered the the button says “select options”

 

 

Tanvirul Haque

Hello Matt Loeffler,

Is it the feature of your theme or are you using any filter plugin for that?

Thanks

Matt Loeffler

Its a filter plugin.

 

Can you tell me why its resetting?

Tanvirul Haque

Hi Matt,

Thanks for reaching us. We are sorry for your inconvenience.

Could you send us the latest version of the filter plugin that you are using on your site? We’ll try to investigate your issue by installing your theme on our local setup.

You can upload the plugin file in Dropbox or Google Drive and send the download link here directly.

Looking forward to hearing from you soon.

Thank you

Tanvirul Haque

Hi Matt,

Thanks for reaching us.

We need an event from your filter plugin 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 trigger like 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

Matt Loeffler

Hi

 

Im sorry this is a little tricky for me. Can you please implement this script to the site if I give you login?

 

Thanks,

Tanvirul Haque

Hello Matt Loeffler,

You don’t need to implement it now.

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

So you have to contact your Filter plugin support and just send this plugin to there support: https://wordpress.org/plugins/malinky-ajax-pagination/ and ask them to send a trigger 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