[ic] Simple question about using [DISCOUNT]

Michael Goldfarb interchange-users@icdevgroup.org
Sun Oct 6 19:57:00 2002


>I want to offer my customers a ENTIRE_ORDER discount based on the total
>number of items ordered, but I'm stuck on how to write the if
statement.
>What I've got looks something like this...
>
>[if nitems > 25]
>[discount ENTIRE_ORDER] $s * .85 [/discount]
>[/if]
>
>but this always returns 'true'. What am I doing wrong?


Here you go...

[if type=explicit compare="[calc][nitems] > 25 [/calc]"]
        [discount ENTIRE_ORDER]$s * .85 [/discount]
  [else]
        [discount ENTIRE_ORDER][/discount]
  [/else]
[/if]