Developer forum

Forum » Ecommerce - Standard features » Show Price Matrix (RRP, tier prices, discount) in variant table

Show Price Matrix (RRP, tier prices, discount) in variant table

Ferri Halfhide
Reply

Hi team,

On the product detail page, I want to show pricing info from the Price Matrix in the variant table.

The table should include columns like:

  • RRP
  • Price >100 pcs (tier price)
  • Discount

This data is already set up in the Price Matrix for the product.
I’m using the relatedProductsList template to render the table.
 

How can I access the product’s Price Matrix in this template and display the correct values (RRP, tier prices, discount) for each variant?

If Razor code is required, could you share a minimal example of how to loop through the matrix and output these values?

Thanks!


Replies

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

Hi Ferri,

 

I'm attaching a component we built and used for a couple of projects that you can use as inspiration. You may need to filter the list of prices using a simple LINQ expression if you want just some of the results.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1

 

You must be logged in to post in the forum