Miva Merchant Development by Scot's Scripts

BASKET: Various Useful Variables, Functions, and Things

Miva Knowledge Base
BASKET: Various Useful Variables, Functions, and Things

WARNING:

This information is offered "AS IS" for internal reference only. Use at your own risk.
Does AI actually understand your Miva Merchant store? Our smart JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

BASKET: Various Useful Variables, Functions, and Things

Scot Ranney • December 02, 2024 (updated: December 02, 2024)


THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED;
THE AUTHOR DISCLAIMS ALL LIABILITY FOR ANY DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR STORE DISRUPTIONS ARISING FROM ITS USE.


Get Total After Discounts etc:  This gives you the total that is to be paid in the basket at that point. Appears to include all discount and other processing. 

Normally g.basket:total will give you this amount, but sometimes it's not available in the environment.

[ g.Module_Library_DB ].Runtime_Basket_Total_Remaining( )

Mivascript:

<MvASSIGN NAME = "l.basket_total" VALUE = "{ [ g.Module_Library_DB ].Runtime_Basket_Total_Remaining( ) }" />

SMT:

<mvt:do file="g.Module_Library_DB" name="l.basket_total" value="Runtime_Basket_Total_Remaining()" />

https://www.scotsscripts.com/mvblog/basket-various-things.html

mvkb_basket