Developer forum

Forum » Swift » Secondary detail page

Secondary detail page

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

I have trouble making a secondary detail page to work. 

I have followed the guide here :

https://doc.dynamicweb.dev/swift/swift-1/implementing/ecommercedesign/productdetails.html#creating-multiple-product-details-pages

The products in "Klima-flex Systems" has the default group set to that group. And the "Primary Page" under Default values is set to "Product Details B".

The solution : https://app-cus-industrilas-test-02-fub9c6aha7a6ejcv.swedencentral-01.azurewebsites.net/Admin/

https://industrilas.dw10-staging.mindflower.se/en-us/products/product-systems/klima-flex-systems

What coult be the problem?

Regards / Aki

 


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Aki

It seems like you have quite a complicated product setup. Which is fine. But I think you should investiate if you have set up the correct primary page for all the folders you expect to have it set on.



I am not sure how this will work if the same product exist in multiple folders.


Best regards
Karsten Thuen

 
Aki Ruuskanen
Aki Ruuskanen
Reply

In the channel "Industrilås > Product Systems > Klima-flex System" there are three products. They are only published to that group. The productgroups you are pointing to contains other products.

The three products in "Klima-flex System" have their Primary Group set to the group they are published to. And the product group "Klima-flex System" has a primary page set to "Product Details B".  But the link rendered is not for that detail page.

The productlist card uses standard Swift2 templates. 

I have only tested this with the product group "Klima-flex System", just to see if it works. 

/Aki

 

 

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

On your site it seems that you can go to the Swift-v2_ProductListItemRepeater.cshtml template line 93, and change it to:

string link = product.GetProductLink(GetPageIdByNavigationTag("Shop"), true);

 

I could not recreate the error on my local setup. Here it was easy to get different detail pages to work. And I did not need to change the boolean in GetProductLink. There may be a configuration on your site that makes it different, but I can not figure what it could be. 

Anyway, you could try the above change. Let me know if it solves the issue for now.


Best regards
Karsten Thuen

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi, that does solve the problem in the productlist. Thanks. 

Regards / Aki 

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi again, 

[edit]

Its working as it should.

 

Regads / Aki 

 

You must be logged in to post in the forum