Support » Plugin: YITH WooCommerce Ajax Product Filter » The page doesn’t update after clicking on a filter

  • Plugin Author YITHEMES

    (@yithemes)


    The issue could be related to the fact you are using a non-standard template for a WooCommerce shop page. To solve it, you should ask to the theme’s author to use WooCommerce standard HTML classes.
    As an alternative, you can use this piece of code in the functions.php file of your theme:

    Please note: From Version 3.0.0 you don’t need to use this snippet in functions.php but you find a set of options in YITH > Ajax Product Filter > Frontend settings page

    if( ! function_exists( 'yith_wcan_frontend_classes' ) ){
    	 function yith_wcan_frontend_classes(){
    	  return array(
    	            'container'    => 'YOUR_SHOP_CONTAINER',
    	            'pagination'   => 'YOUR_PAGINATION_CONTAINER',
    	            'result_count' => 'YOUR_RESULT_COUNT_CONTAINER'
    
    	        );
    	 }
    }
    
    add_filter( 'yith_wcan_ajax_frontend_classes', 'yith_wcan_frontend_classes' );

    If you don’t know which classes you should use, ask to the developer of your theme.

    https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/

    • This topic was modified 1 week, 1 day ago by Marius L. J.. Reason: Add reference to new method on request of plugin authors
Viewing 15 replies - 16 through 30 (of 35 total)
Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘The page doesn’t update after clicking on a filter’ is closed to new replies.