• Hello Phil!

    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 integrate Age Gate with Husky so that we can use the slugs generated by Husky as a basis for applying age restrictions. This would allow us to have more precise control over the categories that need age restrictions, especially those that are dynamically created through Husky’s filters.

    Could you guide us on how we can achieve this integration, or if there is an existing solution we can implement to enable Age Gate to recognize and restrict access to categories based on the terms included on slugs generated by Husky?

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

    Best regards!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there,

    Same issue here.

    Any ideas will be appreciated.

    Plugin Author Phil

    (@philsbury)

    Hi @djwilko12,

    Just want to make sure I understand the issue;

    By default you’d have something like this which you can restrict:

    /product-category/clothing/hoodies/

    But Husky/WOOF creates something like this:

    /shop/swoof/product_cat-hoodies/

    Which doesn’t verify the user when landing on it?

    Thanks
    Phil

    Thread Starter djwilko12

    (@djwilko12)

    Hi Phil,

    Thanks for your reply!

    Normally, I can restrict access to URLs like this:

    /product-category/clothing/hoodies/.

    However, Husky/WOOF generates URLs like this:

    /product-category/clothing/hoodies/?swoof=1&product_cat=name-of-category&really_curr_tax=475-product_cat, which include many parameters. I’m interested in restricting access based on some parameters, for example the value after product_cat in the slug.

    Is there a way to make this work with your plugin?

    Thank you!

    • This reply was modified 7 months, 2 weeks ago by djwilko12.
    Plugin Author Phil

    (@philsbury)

    Thanks @djwilko12, that’s helpful. Potentially a little trick, but probably possible.

    Two more questions, is the slug (in product_cat) the standard category slug e.g. hoodies from our above example? Second, are you on the javascript version of age gate or PHP?

    Thanks
    Phil

    • This reply was modified 7 months, 2 weeks ago by Phil.
    Thread Starter djwilko12

    (@djwilko12)

    Hi Phil,

    About the URL, the standard category slug is /product-category/clothing/hoodies/. In that example, I’m on the Hoodies category page. There we have Husky filters that shows subcategories of the current product category. Let say I select the sub-category “Custom Hoodies” which slug is custom-hoodies. Then, Husky shows the corresponding products and modify the page URL like this: /product-category/clothing/hoodies/?swoof=1&product_cat=custom-hoodies&really_curr_tax=475-product_cat
    We are using the Javascript version of Age Gate.

    Thanks again for your help!

    Plugin Author Phil

    (@philsbury)

    @djwilko12 – I’ve dug into the husky plugin and I have a solution for this that’ll just work out of the box. Should be in the next release.

    Thanks
    Phil

    Thread Starter djwilko12

    (@djwilko12)

    Amazing Phil! Thanks! When you estimate to release the new version?

    Hi Phil, hope you are well.

    We have noticed that the last release of Age Gate included the integration for Husky filters:

    3.4.0
    Added – Integration for WOOF/Husky

    We have installed the last version of both plugins in a test environment but weren’t able to make it work.
    Can you provide any documentation or explanation about the way it works?

    Here is our use case:

    • We’ve set Product Category “Category 1” as age restricted.
    • We navigate the standard woo product category and the Age Gate shows up properly.
    • We navigate the Shop page which shows the Husky filters on its sidebar. Then, we select “Category 1” from the Husky filters but no Age Gate is shown.

    Please let me know if you need any aditional detail.

    Thanks very much in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Restrict Husky / Woof filter’ is closed to new replies.