Loop through basket and add discounts
<!-- Loop through basket and add up discounts -->
<mvt:foreach iterator="group" array="basket:groups">
<mvt:foreach iterator="discount" array="group:discounts">
<mvt:assign name="g.savingstotal" value="l.settings:discount:discount + g.savingstotal" />
</mvt:foreach>
</mvt:foreach>
<mvt:item name="toolkit" param="currencyformat|formatted_savings|g.savingstotal" />
<span class="column whole red" style="text-align: right;">You saved &mvte:global:formatted_savings;!</span>