Hello,
I just noticed that when I used my parametric search with AJAX updating, the WooCommerce product gallery and zoom functionality disappears.
hidden link
You can see this happening here.
Is there a way to make sure this functionality continues functioning after the parametric search filters are triggered.
Thanks!
I figured out the first part, and now my gallery functionality doesn't disappear:
jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.layout (object) The jQuery object for the View layout wrapper
*/
jQuery( function( $ ) {
/** Initialize all galleries on page. **/
$( '.woocommerce-product-gallery' ).each( function() {
$( this ).wc_product_gallery();
});
});
});
However, now my AJAX search doesn't cross fade when I change my filter entry.
I look forward to your reply.
Thanks!
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Yes - you've used correct view's Javascript callback hook to fix your issue.
Could you please tell me by example whats not working now? Maybe few screenshot will help me to understand your issue.