Closed sbellone closed 1 month ago
The demo currently require pricebooks, while it's not an attribute that we recommend by default. Without it, it breaks with the following error:
pricebooks
Uncaught TypeError: data is undefined isSale productsPlugin.tsx:92 ProductItem productsPlugin.tsx:152
This PR changes how the sale price is calculated, to make it work with the default attributes:
promotionalPrice
price
SFCC-390
The demo currently require
pricebooks
, while it's not an attribute that we recommend by default. Without it, it breaks with the following error:This PR changes how the sale price is calculated, to make it work with the default attributes:
pricebooks
promotionalPrice
price
if no other attribute is presentSFCC-390