Hello,
I use the following code to generate product savings (difference between the product cost and product price) on my category pages:
However, when I try to do the same thing, within the Toolkit QuickList Function, it returns a $0 for the savings.
Can anyone point out the error within my code:
Thanks!
I use the following code to generate product savings (difference between the product cost and product price) on my category pages:
Code:
<mvt:foreach iterator="product" array="category_listing:products"> <mvt:item name="toolkit" param="math_subtract|difference|l.all_settings:product:cost|l.all_settings:product:price" /> <mvt:item name="toolkit" param="currencyformat|formatted_savings|difference" /> <li class="savings">You Save: -&mvt:global:formatted_savings;</li> </mvt:foreach>
Can anyone point out the error within my code:
Code:
<mvt:item name="toolkit" param="quick|pcount|code1, code2, code3" /> <mvt:foreach iterator="quicklist" array="quicklists"> <mvt:item name="toolkit" param="math_subtract|difference|l.all_settings:quicklist:cost|l.all_settings:quicklist:price" /> <mvt:item name="toolkit" param="currencyformat|formatted_saving|difference" /> <li class="savings">You Save: -&mvt:global:formatted_saving;</li> </mvt:foreach>
Comment