[ic] Discount Question

Ton Verhagen tverhagen at alamerce.nl
Thu Jul 3 15:01:03 UTC 2008


Quoting Stefan Hornburg:
At 04:36 PM 7/3/2008, you wrote:
>Hello,
>
>I'm working on a pretty simple discounting scheme for a client: 10% off
>for every order with a subtotal >= 100$. This should be very easy to
>implement.
>
>Let's try that:
>
>[tmp total][subtotal noformat=1][/tmp]
>[if type=explicit compare=`$Scratch->{total} >= 100`]
>[discount ALL_ITEMS]
>$s * 0.9
>[/discount]
>[else]
>[discount ALL_ITEMS][/discount]
>[/else]
>[/if]
>
>OK, but here are the problems:
>
>[subtotal] has existing discounts already applied if I understand the
>source code correctly, so change the above to:
>
>[discount ALL_ITEMS][/discount]
>[tmp total][subtotal noformat=1][/tmp]
>[if type=explicit compare=`$Scratch->{total} >= 100`]
>DISCOUNT for [scratch total]
>[discount ALL_ITEMS]
>$s * 0.9
>[/discount]
>[/if]
>
>That should be fine. Now my client want to display [subtotal] with
>out a discount and the discount on the order.
>
>Duh ..
>
>What about introducing [subtotal nodiscount=1] ?


Would be a wonderful solution IMHO.

However, there is something like that.

See:
http://www.interchange.rtfm.info/mirror/usertags/subtotal_nodisc.usertag



Best regards,

Ton

--
Alamerce Nederland --- Cornerstone of eBusiness
Phone +31-40-2374381    info at alamerce.nl    http://www.alamerce.nl

eCommerce Solutions -- Consulting -- Website & Interchange Hosting 





More information about the interchange-users mailing list