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:

    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/

Viewing 15 replies - 1 through 15 (of 35 total)
  • galzalex

    (@galzalex)

    Hi,

    Can you pls help me locate the correct classes on my website?

    http://defrietraeudsalg.dk/product-category/reoler/

    Thanks a lot!

    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    use this code:

    if( ! function_exists( 'yith_wcan_frontend_classes' ) ){
    	 function yith_wcan_frontend_classes(){
    	  return array(
    	            'container'    => 'ul.product-grid',
    	            'pagination'   => 'nav.woocommerce-pagination',
    	            'result_count' => '.woocommerce-result-count'
    
    	        );
    	 }
    }
    
    add_filter( 'yith_wcan_ajax_frontend_classes', 'yith_wcan_frontend_classes' );
    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:

    For version prior to 2.2.0:

    you can use this piece of code in functions.php file of your theme:

    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.

    From version 2.3.0 or later:

    You don’t have to write manually the code anymore, as you can just go to

    YITH Plugin -> Ajax Product Filter -> Front End

    and set easily the parameters from the text fields.

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

    Hi,

    Can you help me locate the correct classes on my website?

    http://www.goedkopekledingonline.nl/

    Thanks!

    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    try with this settings:

    Shop Container = .products-loop
    Pagination = nav.pagination-cubic
    Result Count = .woocommerce-result-count

    You can set this in the YIT Plugins -> Ajax Product Filter -> Front End

    Let me know

    Still not working.

    i am sorry, it works!

    Thank you

    Plugin Author YITHEMES

    (@yithemes)

    Hi Marske39,

    you’re welcome!
    If you like our plugins and support, please give us 5-star review!
    Regards

    YIThemes

    Hello.

    I have default options.
    1) Product Container: .products
    2) Shop Pagination Container: nav.woocommerce-pagination
    3) Result Count Container: .woocommerce-result-count

    Author template says:
    “We have not overwritten any WooCommerce default templates or its classes.”

    But, the page doesn’t update after clicking on a filter:
    http://testvolt2.piar.pm/category/rozetki-i-vyklyuchateli/vyklyuchateli/

    Please help me,
    Thank you in advance.

    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    the problem is the infinite scrolling. The plugin filter correctly but when you scroll down the other results appears.

    If you want to use th einfinite scrolling you can try our plugin:https://wordpress.org/plugins/yith-infinite-scrolling/

    Let me know.
    Thanks for patience

    Have a nice day :_)

    Thanks for the awesome plugin but I’m having the same trouble…clicking color and page doesn’t update. I’m using default code in my functions file but no dice. If I can get this to work, we’ll definitely be buying the premium version. Can you please tell me what my options should look like?

    http://elegantmosaics.com/shop

    Plugin Author YITHEMES

    (@yithemes)

    Hi @shayeryan,

    try this solution. Go in YIT Plugins -> Product filter -> Frontend and change the default value of products container with this: **.wf-container**

    Let me know if owrks.

    Thanks
    Have a ncie day

    YIThemes

    Sorry for late reply 🙂

    Thanks that worked!

    Is there a way to keep it from defaulting to single column when filtering? It’s blowing up the image and distorting it.

    Thanks again!

    It doesn’t look like it’s working on mine either :/

    http://tyresdirectuk.co.uk/shop/category/steel-wheels/

    Plugin Author YITHEMES

    (@yithemes)

    Hi @shayeryan,

    Please can you send me a link to see the issue ?

    Hi @paulh267,

    your theme use standard WooCommerce css classes. This is very strange. Please, can you add the widget in sidebar ? In this way I’ll do a test.

    THanks.
    Have a nice day

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘The page doesn't update after clicking on a filter’ is closed to new replies.