We need set site-wide cookie filter by brands.
WooComerce have build-in Brands taxonomy.
At the start landing page user will be select one from several brands. And after, user views products on site only by selected brand. If user will visit brand url (www.example.com/brands/brand-second), then need change filter to another brand, and shows products only by last selected brand. Others products not allowed to shows (another brand or without brand).
What any ideas for realize this?
2
Answers
I found solution for my question!
I think you can try hold the visible brand in a cookie, and use
woocommerce_product_query
orpre_get_posts
filters to filter according to that cookie value.Each time the user visits that brand URL, change the cookie value.