[ic] Discount of x% on >2 items

Peter peter at pajamian.dhs.org
Tue Jan 19 03:02:59 UTC 2010

On 19/01/10 04:39, Grant wrote:
>>> Does there exist anything along the lines of
>>> [subtotal-before-discount] or [discount-amount]?
>> http://gb0.downloads.interchange.rtfm.info/usertags/subtotal_nodisc.usertag
>> Peter
> Very nice, thank you.  The total discount amount can also be
> calculated pretty easily with [item-discount].  Is there a way to find
> out if any discount is in effect?  Something like [if discount]
> without specifying a particular sku?

Versions of IC before 5.3.1 check the variable $Session->{discount}

After 5.3.1 check $Discounts

I think both are hashrefs.


More information about the interchange-users mailing list