[ic] Weirdness with discount tag

Ed LaFrance edl at newmediaems.com
Mon Nov 17 14:02:18 EST 2003

At 02:44 PM 11/17/2003 -0600, you wrote:
>IC 4.9.8-20030915
>The shopping cart is not displaying the correct price-each or subtotal 
>when using discounts if you order more than 1 item. It works fine as long 
>as the quantity is 1, but when it is 2 or more, the discounted price-each 
>gets divided by the quantity, and the subtotal equals that times the 
>quantity (correct behavior).
>The discount is applied on the flypage, and is to equal the SalePrice 
>field in my database:
>[discount [item-code] interpolate=1]
>my $t = [item-field SalePrice];
>return $t;
>The cart is using:
>[if discount [item-code]]
>[discount-price] (for price-each)
>[item-discount-subtotal] (for extended price)
>I have a test site here:
>This page has links to the flypages, which apply the discount. For this 
>particular sale, everything is 25% off, so I've also tried applying the 
>discount on the flysale-audio.html and flysale-videos.html pages with:
>[discount [item-code]] $s * .75 [/discount]
>This works if you type in the quantity and then hit "Add to cart." It also 
>works if you order 1 and then change the quantity in the cart and 
>recalculate. The problem starts if you go back to the sale page, and buy a 
>different item. When the cart comes up, the first item's price-each equals 
>the discounted price each divided by the quantity.
>I am baffled by this. Any suggestions?

Josh -

This worked fine for me...

- Ed

New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          edl at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax

More information about the interchange-users mailing list