Skip to content

Instantly share code, notes, and snippets.

View colinceo's full-sized avatar

Colin Puttick colinceo

View GitHub Profile
@steveosoule
steveosoule / miva-add-remove-basket-charge.xml
Last active April 10, 2024 22:07
Miva - Add & Remove Basket Charges
<mvt:if expr="g.Delete_Charge">
<h2>Delete Charge</h2>
<mvt:do file="g.Module_Library_DB" name="l.gone" value="BasketCharge_Delete_All_Type(g.Basket:basket_id, 'CUSTOM_CHARGE')" />
</mvt:if>
<mvt:if expr="g.Add_Charge">
<mvt:assign name="l.basket_charge:basket_id" value="g.Basket:basket_id" />
<mvt:assign name="l.basket_charge:module_id" value="0" />
<mvt:assign name="l.basket_charge:type" value="'CUSTOM_CHARGE'" />