PDA

View Full Version : Basket Total in a Miva Conditional


Brandon MUS
09-07-06, 01:31 AM
my code:
<mvt:elseif expr="(g.ShippingMethod EQ 'ptbship:US Postal Service') AND (Basket.d.Total GE 100)">

What should Basket.d.Total really be? I know that the entity for it is &mvt:formatted_total;, but I can't use entities in a comparision..

Also, where can I find all of the variables? I always look through the Miva 4.x database reference, but I can't seem to figure out how to use it in conditional statements. BasketList.d.Total didn't work, and it looks like it would.

Leanne
09-07-06, 06:20 AM
Have you tried Latu's Storehelper (http://store.latu.net/miva-modules-5/LATU-STOREHELPER.html)?

Brandon MUS
09-07-06, 06:44 PM
No, but that looks awesome. Thanks!

Brandon MUS
09-07-06, 06:59 PM
Amazing. That was quick and easy.

<mvt:elseif expr="(g.ShippingMethod EQ 'ptbship:US Postal Service') AND (l.settings:basket:total GE 100)">