Hey Guys,
I'm trying to show the difference in price/savings on the category product display for products that are on sale. I'm having trouble getting the math_subtract toolkit function working properly, could some one please check out my code and let me know, where I went wrong, any help would be greatly appreciated :)
I'm trying to show the difference in price/savings on the category product display for products that are on sale. I'm having trouble getting the math_subtract toolkit function working properly, could some one please check out my code and let me know, where I went wrong, any help would be greatly appreciated :)
Code:
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:msrp">
<mvt:item name="toolkit" param="math_subtract|difference|l.settings:category_listing:products:customfield_values:customfields:msrp;|l.all_settings:product:price" />
<mvt:item name="toolkit" param="currencyformat|formatted_savings|difference" />
<div class="product-savings">Savings: &mvt:global:formatted_savings;</div>
</mvt:if>
Comment