• onestudiowebdesign

    (@onestudiowebdesign)


    Hi,

    I am trying to get this plugin to function right on a website for a client.

    I have few problems which occurs.

    1. To get a filter to work from within a category page a second filter option must be selected and the source must be set to “Products” from the product grid settings. For example Product Category & a Brand need to be selected for desired products to show. If a second option isn’t selected it doesn’t show just the product from that category but all products from all categories.
    2. If in the product grid settings I change the source to Dynamic I see the desired category page products but then the filters do not function at all.
    3. If I use a different product grid to test I can only ever get two products to display on the front end even when choosing to display 12 from the back end.

    Hope I’ve explained myself properly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    in this case, ?you will need to create different presets for each category, and then check if your theme has the ability to set a sidebar for each product category.

    If not, you need a plugin like?Widget Options. With this plugin, you can show/hide the filter preset widget dynamically. You have to put the?YITH Ajax Filters Preset?widget in a sidebar, select the preset and in the?Settings (Gear icon) > Logic field?enter this code:

    is_product_category( 'CATEGORY_SLUG' )

    In your case, you should replace the string CATEGOTY_SLUG with the slug of the category where you want to show the filter. I leave you a screenshot of an example. In this screenshot, I set the Extra preset to only show on the Extra category.

    Have a great day!

    Thread Starter onestudiowebdesign

    (@onestudiowebdesign)

    Thank You. I found another solution to get it this to work correctly as I have lot existing categories.

    However, I have another very random issue when using Chrome and Edge browsers. Whenever I select a filter option, it creates additional chevron arrows in the menu items with sub-menu items.

    Only once I refresh the page completely do the chevron arrows reset.
    Please see the screenshot below.

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well ??

    Probably it’s necessary to change the filter area as seems it’s not using a standard WooCommerce shop page.

    Could you please send me the URL where you have enabled the filters? In this way, I can see if we can provide a code snippet to help you.

    Have a good day.

    Thread Starter onestudiowebdesign

    (@onestudiowebdesign)


    Thanks for your reply, here is the URL: https://maxbeamaustralia.com.au/shop/

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hello there,

    please assign a CSS selector to the main wrapper that includes filters and products, the area I highlight in the screenshot here.

    Then add following code in the file functions.php of your theme.

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
        function yith_wcan_content_selector( $selector ){
            $selector = '.yith-page-content';
            return $selector;
        }
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' );
    } 

    Replace “yith-page-content” with the selector you use.

    We remain at your disposal.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin Not Functioning Right In Category Pages’ is closed to new replies.