Developer forum

Forum » Swift » RelatedProductsList.cshtml rendering price viewmodel instead of price

RelatedProductsList.cshtml rendering price viewmodel instead of price

Pedro Meias
Pedro Meias
Reply

Hi

The template Designs/Swift/eCom/ProductCatalog/RelatedProductsList.cshtml is rendering a price view model.

Shouldn't it be product.Price.Price instead? 

Thank you.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

You have an old template - this is the new:

https://github.com/dynamicweb/Swift/blob/1535ca7d336c3f8f7870ec9cd9de1633fff8f6b2/Swift/Files/Templates/Designs/Swift/eCom/ProductCatalog/RelatedProductsList.cshtml#LL503C11-L503C119

Votes for this answer: 1
 
Pedro Meias
Pedro Meias
Reply

Thank you Nicolai

 

You must be logged in to post in the forum