[ic] Weirdness with discount tag
edl at newmediaems.com
Mon Nov 17 16:27:57 EST 2003
At 05:08 PM 11/17/2003 -0600, you wrote:
>On Monday, November 17, 2003, at 04:02 PM, Ed LaFrance wrote:
>>At 02:44 PM 11/17/2003 -0600, you wrote:
>>>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];
>>>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?
>>This worked fine for me...
>Thanks for taking a look. Did you happen to use the back button to return
>to the sale page?
Yes I did.
>After some further testing, I found that buying audio tapes and changing
>quantity in the cart or on the flypage worked. If I used the back button
>to return to the sale page, and added more audio tapes, the quantities
>were still fine. It was only when I hit "continue shopping" or entered the
>sale page URL in the browser that the discounts got messed up.
Even in those cases, everything worked fine for me (I just tried it).
>interchange-users mailing list
>interchange-users at icdevgroup.org
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