Developer forum

Forum » Swift » How to dublicate productlist (shop navigation tag)

How to dublicate productlist (shop navigation tag)

Kasper Legarth
Reply

We are building a webshop based on early swift. 
We have the classic productList with navigation tag "Shop".

If copy that productList change the navigation tag and copy its template and change the: " string link = product.GetProductLink(GetPageIdByNavigationTag("Shop"), false);" to " string link = product.GetProductLink(GetPageIdByNavigationTag("ShopNewMachines"), false); 

It does no work, it gets the correct URL. But it just shows an empty product list and not the product detailspage like when using shop? Other than navigation tag, they are the same?

 

What am i missing?


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

Do you run multiple product lists or only 1 product list (the new one). The specific navigation tag "shop" is required in order to work properly with many of the features of the site. So be sure that navigation tag references in other templates and link to product list from paragraphs are changed too.

Maybe other settings are lost during copy? Try look at this list about manual setup. It might give a hint about where to look.
https://doc.dynamicweb.com/swift/setup-project/ecommerce-design/product-list#sideNavTitle1-3

I can't figure out if you need to run with 2 product lists at the same at the same website. If you want to do that you need to know that Swift doesn't support multiple product lists at the same website. Read more about hat in this thread:
https://doc.dynamicweb.com/forum/swift/swift/mutliple-product-lists-underneath-the-same-website-root

Kind regards,
Merethe
 

 
Kasper Legarth
Reply

Hi Merethe.

I indeed need multple product lists.

I have made a copy of all the files i could find using navigationtag shop. But i mus be missing something. It is like the original productlist understand to take a another pages paragraphs when showing a product, but the new one doesn't? Is there any hidden functionality to this?

 

You must be logged in to post in the forum