Skip Navigation

[Resolved] archive view per woo product category

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#595465

I am trying to: show category archive view per category but really hard to get it right.

Link to a page where the issue can be seen: it is not possible at the moment.

I expected to see: when I click the category name in front page, I want to see the same product list view according to the selected category. I think it is quite easy but couldn't figure out!

summary:
At the moment. When user arrived at front pages, there is one basic parametric search on top and shows all product lists below. BUT

1. I need to show sidebar version of parametric search with results at front pages.
2. When someone click the top menu which is categories, I want to show them the result with left sidebar parametric search. (Basically, same layout(left sidebar + result) result page for all categories.

#595723
wc_8888_wp-admin_admin.php_page=views-editor&view_id=207.jpg
Screen Shot 2017-12-04 at 3.27.00 PM.png

1. I need to show sidebar version of parametric search with results at front pages.
When you place a View in your page using the "Fields and Views" button, you will be given the opportunity to show only the filters, only the results, or both results and filters. So you should be able to place your parametric search form in one area of your page, and place the results in another area of the page.

2. When someone click the top menu which is categories, I want to show them the result with left sidebar parametric search. (Basically, same layout(left sidebar + result) result page for all categories.
Okay one way to do this is to send the User to a custom page instead of the category archive, when they click a link. On the custom page, include a View with a product category filter, where the category slug is provided by a URL parameter. See the attached screenshot for an example of this kind of View.

On the front page, build custom links to this page using the product category slug as the URL parameter:

<a href="/your-custom-page?wpvproductcat=productcatslug">Product Category Name</a>

When the user clicks this link, they will be shown the custom page with a View filtered by the Product Category with slug "productcatslug". This is called passing arguments to Views, and we have more information about that here:
https://toolset.com/documentation/user-guides/passing-arguments-to-views/

The forum ‘Types Community Support’ is closed to new topics and replies.