• Resolved Peter Westerlund

    (@peter-westerlund)


    First posted this in the wrong support forum and to be able to post it here it first needed to be different in the text. So I hope this first text helped with that.

    I wanna have the product filter only for one woocommerce product category I have therefore have I added this shortcode to that product category’s description:

    [woof sid="auto_shortcode" autohide=0 is_ajax=0 taxonomies=product_cat:35,30,31,34,33,36]

    I have also tried without that method and just added the WOOF Product Filter widget to the sidebar, and it’s the same problem so I don’t think the placement in the product description causes the problem.

    The problem:
    When you press a filter button the site redirects to the startpage.

    Why? And what can I do to prevent this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello

    To show and filter products on custom pages use shortcode [woof_products] OR standard woo shortcodes

    Thread Starter Peter Westerlund

    (@peter-westerlund)

    It’s not a custom page. It’s a category page.

    I could have a custom page but the problem is that I can’t get that to work either. Look at this page: https://test.golfgrossisten.se/begagnade-bollar/

    If I press the filter button “Mjuk (3)” for example. It says there is 3 products in that category. But there’s not 3 products in the result.

    Hello

    To show filter you use – ‘product_cat:35,30,31,34,33,36′

    So to show products use – [woof_products taxonomies=’product_cat:35,30,31,34,33,36’ ]

    Thread Starter Peter Westerlund

    (@peter-westerlund)

    Okay I had to modify this post. But here’s how it is right now. I want all the child products categories of the product_cat 32 to be shown in the filter. So this is how the page’s shortcodes are right now:

    [woof autohide=0 taxonomies=product_cat:32]
    [woof_products taxonomies=product_cat:32]

    That really make me expect that only products with product cat 32 or children categories of product cat 32 will be shown. But no. All product categories we have are still shown in the filter: https://test.golfgrossisten.se/begagnade-bollar/

    Product cat ID 32 is “Golfbollar”, but as you can see, even all it’s siblings are shown in the filter.

    Thread Starter Peter Westerlund

    (@peter-westerlund)

    Okay I installed the WOOF by Category plugin. And then it works by having the category page as the menu page. Only problem now is after you filtered and if you wanna for any reason refresh the page, then you redirects to the startpage. Really weird.

    Hello

    Please drop exact link to the issue

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirects to startpage from category page’ is closed to new replies.