PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

WooCommerce Logical split - 2 separate filters on 2 separate pages

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

I have an WooCommerce Shop which is logically split in 2 like this:

https://example.com/Shop_A
Cat_A
Cat_B
Cat_C

https://example.com/Shop_B
Cat_D
-Cat_D1
-Cat_D2
Cat_E

is it possible to configure Husky filter to serve these 2 pages?

i need to configure 2 different filters for 2 different pages with different category/products from the same WooCommerce Shop.

Would you please point me to the right documentation to accomplish this?

Thanks,
PS1

Hello

Looks like you need to aplly shortcodes like:

[woof sid="shop_a" taxonomies="product_cat:cat_a,cat_b,cat_c"]
[woof sid="shop_b" taxonomies="product_cat:cat_d,cat_e"]

I you using them in sidebar, you can place them in separate text widgets, then you need to show them regarding to conditions, I can suggest you install this plugin https://github.com/realmag777/Show-WordPress-Widget-by-Logic and in set conditions there, here is examples of conditions you can use:

// Show on the Shop main page
is_shop()

// Show on ANY product category page
is_product_category()

// Show on a specific category (by slug)
is_product_category('cat-a')

// Show on multiple categories
is_product_category(array('cat-a', 'cat-b', 'cat-c'))

// Show on Shop_A page (if it's a regular WP page)
is_page('shop-a')

// Show on Shop_A page OR categories A, B, C
is_page('shop-a') || is_product_category(array('cat-a', 'cat-b', 'cat-c'))

// Show on all WooCommerce archive pages
is_woocommerce()

// Show on product page
is_product()

// Show on category and its subcategories
is_product_category('cat-d') || cat_is_ancestor_of('cat-d', get_queried_object())

// A more complex option is to check if the desired parent category exists in the hierarchy
is_product_category() && (is_product_category(array('cat-d', 'cat-d1', 'cat-d2', 'cat-e')))