Developer forum

Forum » Ecommerce - Standard features » Displaying lowest and highest variant price in product list

Displaying lowest and highest variant price in product list

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I recall a discussion from a long time ago about displaying the lowest and highest price of a variant in the product list. That way we can display something like: Price from 200DKK to 400DKK where the 200 and 400 represent the lowest and highest price on the variants for a product.

Is there built-in support in the index for this now? Or should I extend this myself? If there's support, how do I pull the data out?

Thanks!

Imar


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Imar,

 

It's already built into the ViewModel (not the index afaik) currently. So by using the Price Component (aka Paragraph) it will actually render you a price range. Here is an example

 

Best Regards,

Nuno Aguiar

 

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Nuno, that's good to know. What did you do to have this show up? I am not seeing it on the public Swift site. Did you just change a price?

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Imar,

 

Yes, I simply changed the price of some variants. I could have just done 1 in fact.

 

Best Regards,

Nuno Aguiar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Yeah, I found it now. Getting the same results. Great, thanks!

 

You must be logged in to post in the forum