Developer forum

Forum » Ecommerce - Standard features » Multiple product catalog lists on the same page

Multiple product catalog lists on the same page

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

 

I have a page that shows three lists of products, each with their own Product Catalog module on a paragraph: a set coming from a group, and two sets coming from a smart search. However, it seems that the second and third set don't display their own data, but display the products from the first product catalog.

 

How can I enforce each catalog module to render its own products?

Imar

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Imar

 

Sounds weird. Do you have the checkbox "Enable display caching" set?

Try disabling it. It could be a bug that caches on the page id and not the paragraph instance...

 

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Nope, display caching is turned off. Here's a link to the site in case you want to take a look:

 

This works fine as groups are rendered on the main ecom catalog: http://scooter.dw-demo.com/products

 

This one doesn't and shows the same set three times: http://scooter.dw-demo.com/products/mobile-workstations

 

Imar

 
Nicolai Høeg Pedersen
Reply

Ah.

 

That is because the /mobile-workstations is actually a product group and translated into ?GroupID=GRPXX so the full URL would be Default.aspx?ID=1&GroupID=XX.

 

That will trigger all the catalog modules on that page to render a product list based on the querystring, getting the same product lists based on the Group id in the querystring.

 

To avoid that, you can add the PID=[ParagraphID] to the list being clicked, and that will make sure that only that paragraph reacts on the GroupID from the querystring. Meaning this works: http://scooter.dw-demo.com/products/mobile-workstations?PID=2

 

Of course that will give you ugly URLs... But it is the only way you can have different catalogs on the same page reacting on different querystring parameters...

 

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I was afraid you were going to say that ;-( I saw something similar in another forum thread but didn't realize I was having the exact same situation.

 

Changing the URLs isn't a great idea as they will be using the URLs in public communication and print as well.

 

Any way to extend around this? At the very least I can make a custom module that has a Product Group picker and a template picker and then render my own products. Any alternatives that would be easier to implement?

 

And would a "Ignore URL parameters" or "Render as-is" checkbox on the Product Catalog module make any sense?

 

Imar

 
Nicolai Høeg Pedersen
Reply

Hi Imar

 

I have added a "Ignore URL parameters" checkbox for the 8.3.1 branch, TFS#13985.

You can check it out of TFS or it will be released right after new years.

 

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Wonderful! Thank you very much; I'll check it out.

 

Imar

 

 

You must be logged in to post in the forum