Skip to content

Instantly share code, notes, and snippets.

@tessguefen
Created March 14, 2017 15:37
Show Gist options
  • Select an option

  • Save tessguefen/0c885c26930ee9cfe6d8b3abf977e3af to your computer and use it in GitHub Desktop.

Select an option

Save tessguefen/0c885c26930ee9cfe6d8b3abf977e3af to your computer and use it in GitHub Desktop.
Update Basket Charge List
<mvt:assign name="l.settings:basket:charges" value="NULL" />
<mvt:do file="g.Module_Library_DB" name="l.success" value="BasketChargeList_Load_Basket( g.basket:basket_id, l.settings:basket:charges )" />
<mvt:foreach iterator="charge" array="basket:charges">
<mvt:do name="l.settings:charge:formatted_disp_amt" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:charge:disp_amt )" />
</mvt:foreach>
<mvt:do file="g.Module_Library_DB" name="l.settings:basket:total" value="Basket_Total( g.Basket:basket_id )" />
<mvt:do name="l.settings:basket:formatted_total" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:basket:total )" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment