Menu
Guides

Release Notes
Release Notes

List price presentation on product selling price

Improved

The `hasListPrice` prop was added to the `product-selling-price` block from [Product Price app](https://developers.vtex.com/docs/guides/vtex-product-price/).

August 14, 2020
1 min read

{"base64":"  ","img":{"width":105,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","length":951,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/xxx-0.png"}}

The hasListPrice prop was added to the product-selling-price block from Product Price app, and it is responsible for defining whether the product should display its list price (if any) or not.

The new prop makes it possible to display a different text on a product selling price if any list price exists and differs from the first one.

{"base64":"  ","img":{"width":630,"height":298,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":28295,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/xxx-1.png"}}

{"base64":"  ","img":{"width":516,"height":326,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":27265,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/xxx-2.png"}}