[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] If gone wrong
> > Why would the following not work?
> >
> > [if subtotal >~ 50]
> > your subtotal is over $50.00
> > [/if]
> >
> > or
> >
> > [if subtotal > 50]
> > your subtotal is over $50.00
> > [/if]
> >
> > or
> >
> > [if subtotal gt 50]
> > your subtotal is over $50.00
> > [/if]
> >
> > I am stumped how to compare [subtotal] in shipping page (I get a value
> for
> > [subtotal]) in multi page checkout.
> >
> Try:
>
> [seti tmp_subtotal][subtotal noformat=1][/seti]
>
> [if scratch tmp_subtotal > 50]
> Your subtotal is greater then $50.00
> [/if]
>
> -Ron
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>
> Perfect, thank you
>
> I never thought to look at [seti...
>
> [if..] docs could use a mention of that ;)
>
The docs do mention the "term op compare" syntax for the [if] tag,
so following that, the following would work:
[if term="[subtotal noformat=1]" op=">" compare="50"]
Your subtotal is greater then 50.00
[/if]
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/