I am able to get the order Subtotal, before taxes and shipping. How can I get the total order discount?
So if the subtotal was $50 and there was a couponcode for 10% off, how could I get the $5 value. Can I iterate through the order items to get the total discounted amount?
<mvt:foreach iterator="item" array="order:items">
<mvt:assign name="g.orderDiscount" value="g.orderDiscount + l.settings:item:discount" />
</mvt:foreach>
Thank you.
So if the subtotal was $50 and there was a couponcode for 10% off, how could I get the $5 value. Can I iterate through the order items to get the total discounted amount?
<mvt:foreach iterator="item" array="order:items">
<mvt:assign name="g.orderDiscount" value="g.orderDiscount + l.settings:item:discount" />
</mvt:foreach>
Thank you.
Comment