• Resolved lcaseres

    (@lcaseres)


    We are using the Age Gate plugin to apply age restrictions on our WooCommerce site. We have successfully set up age restrictions for the default WooCommerce categories. However, we are encountering a challenge when trying to apply these restrictions to categories filtered using the Husky plugin (formerly known as WOOF).

    In our setup, Husky generates its own slugs for the filtered categories, which differ from the default WooCommerce slugs. As a result, we are unable to directly apply Age Gate’s age restrictions to these filtered categories because they rely on WooCommerce’s default slugs.

    Our goal is to show Age Gate restriction form within Husky’s filtered product categories.

    Could you guide us on how we can achieve this integration, or if there is an existing solution we can implement on Husky settings?

    Thank you in advance for your assistance, and we look forward to your prompt response.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Please describe in more detail what you want to implement

    hide category terms in the filter?
    Modify the search query depending on hidden products?

    Thread Starter lcaseres

    (@lcaseres)

    Hi @mediawebster,

    Thanks for your reply!

    We need to show the Age Gate form when the user selects a category filter corresponding to an age restricted categoty. Here is the use case:

    1. The user navigates a product category page, let say: /product-category/clothing/
    2. The website shows the product category page which includes a left sidebar with Husky filters. Whithin those filters there are child categories of “clothing” and some of them are age restricted. Let say we have an “adult” child category.
    3. The user selects the “adult” child category from the Husky filters.
    • Actual behavior: Husky shows “adult” products without restriction. The URL is set as: /product-category/clothing/?swoof=1&product_cat=adult&really_curr_tax=475-product_cat.
    • Expected behavior: The Age Gate form is displayed.

    Notice that if the user navigates directly the standard woocommerce category at /product-category/clothing/adult then the Age Gate form is shown. I suppose this is because the user is in the standard Woocommerce URL. Otherwise, when navigating the same category from Husky filter, the URL is different (/product-category/clothing/?swoof=1&product_cat=adult&really_curr_tax=475-product_cat) and not recognised by Age Gate as a restricted category.

    Please let me know if I’m not being clear.

    Thanks in advance for your help.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    In this case, I think you need to customize a third-party plugin

    Add search query verification functionality.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Age Gate integration’ is closed to new replies.