Skip Navigation

[Resolved] Set Product Category based upon Page Loaded

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by Beda 6 years, 6 months ago.

Author
Posts
#952393

Currently I have a custom view and search that is showing a list of products. These products are displayed on a page with visible search options. I would like to use the same view on multiple different pages, but would like the view to automatically be set with different Categories set when a user visits the certain page.

Example: Page 1 is for Sunny and Page 2 is for Snow. The products view by default shows all products. I want to use the same view on both pages, but when a user visits page 1 I want only the Sunny products to display. If the user decides to uncheck the Sunny category, all products will be displayed. Am I over thinking how to implement this?

#952781

I suggest this Trainings:
https://toolset.com/documentation/beyond-the-basics/

There is one section that describes exactly what is possible to do with Toolset related to your question:
https://toolset.com/documentation/beyond-the-basics/re-use-the-same-view-with-different-settings/

I think you will be able to achieve this with a ShortCode attribute - please see in the above DOC the details.
There is as well a "Learning by Doing" section at the bottom

#952782

I suggest this Trainings:
https://toolset.com/documentation/beyond-the-basics/

There is one section that describes exactly what is possible to do with Toolset related to your question:
https://toolset.com/documentation/beyond-the-basics/re-use-the-same-view-with-different-settings/

I think you will be able to achieve this with a ShortCode attribute - please see in the above DOC the details.
There is as well a "Learning by Doing" section at the bottom