Developer forum

Forum » Templates » Can't see Filters while over viewing product

Can't see Filters while over viewing product

Dmitrij Jazel
Reply

Hey guys,

I have a question here, I have a totally standard DW setup with product catalog. And I am using DW product catalog filters.

Filters are shown and work as they should while getting the Product List.

But as soon as I click on one of the products, the filters will dissapear. So basically when you are in "product view" vilters are not accessible, even if you are defining filters inside product template. The only place I can see filters is product list.

I wanted to ask if that is the way how it should work, or is there a way to solve this one somehow maybe?

 

Regards,

Dmitrij


Replies

 
Mikkel Ricky
Reply

The filters are for filtering a list of products and only make sense on a product list. 

However, you can have both a product list (with filters) and a product details view on the same page by adding two modules to the page, and have the first module always show a list and the second module only showing product details.

A way to achieve this is as follows: On the details module you select "Nothing selected" in List template (as it should only show details). In the list template on the products list module you add the PID query parameter with a value being the id of the paragraph containing the second module:

<!--@LoopStart(Products)-->
<a href="<!--@Ecom:Product.Link.Clean-->&amp;pid=«id of paragraph»"><!--@Ecom:Product.Name--></a>
<!--@LoopEnd(Products)-->

The first module will always show a list of products and the details will (only) be shown by the second module.

 

 

 
Dmitrij Jazel
Reply

Hej MIkkel,

Hmm, ok, so as I understood, you want to separate product list from product details.

In your example, I am not sure how 2nd (details) part should work correctly, because eventually you would ask ecom module to show details for "productid=123" and when you enter that view, there is no way to retrieve the information that product list provides, nor product list itself, nor Filters.

 

I was thinking to put a extra ecom paragraph asides somwhere else on the page, and in module settings set parameter "Show on paragraph" and set some other paragraph that is not undet catalog page (for example contact pages some random paragraph), but that still triggers product view on that paragraph aswell - and just tries to show product details again, same as other (original) ecom paragraph.

 
Mikkel Ricky
Reply

When adding the PID query parameter only the module on the paragraph with this id reacts to other query parameter, i.e. with the query

/Default.aspx?ID=1&ProductID=PROD87&pid=123

only the module on paragraph with id 123 will show the details for product PROD87. All other modules on the page will ignore the ProductID parameter.

You can use the "Show on paragraph" setting and the @Ecom:Product.Link.Clean.PID template tag to show the product details on the second module on the page, but you need two eCom modules in the same page to show both list (filters) and details. 

 
Dmitrij Jazel
Reply

Ahh.. I got it now :) ok Let me try, and I will let you know how it went...

 

You must be logged in to post in the forum