[ic] discount tag

Mike Heins interchange-users@icdevgroup.org
Sun Jun 16 18:14:00 2002


Quoting Michael Goldfarb (mikeg@contactdesigns.com):
> 4.8.5
> 
> Is there any way to use a variable with the [discount] tag?
> 
> For instance, I would like to discount an entire order by a dollar amount 
> that is held by a scratch variable.  I have been trying something like:
> 
> [discount ENTIRE_ORDER] $s - [scratch VARNAME] [/discount]
> 

This is standard IC embedded perl.

    [discount ENTIRE_ORDER] $s - $Scratch->{VARNAME} [/discount]

-- 
Mike Heins
Perusion -- Expert Interchange Consulting
phone +1.513.523.7621      <mike@perusion.com>

Software axiom: Lack of speed kills.