Forums

This topic is locked

Charon Cart II - Discounts

Posted 12 Mar 2003 20:56:58
1
has voted
12 Mar 2003 20:56:58 Leon Downes posted:
have used the tutorial to gain an insight into how the charon cart works and have successfully built a working cart, with the exception of discounts.

When a customer has logged in their level of discount one the 'save to cart page' is displayed

Sub Total :10.00
Shipping : 2.00
Discount : 2.00
Grand Total:10.00

The correct Subtotal, Shipping, Discount and Grand Total are displayed, however when the cart is saved to the database the Grand Total Field contains the grand total exculding the discount and the discount field is blank.

So in this example the Grand Total saved would be 12.00 instead of 10.00 and Discount would be blank instead of 2.00.

I am not sure why the incorrect Grand Total is being entered in to the database, while the correct one is shown on the page when the Grand Total in the HiddenField is from the charon cart bindings panel and is the same binding as the one shown on the page. The Discount value held in a hidden field is also from the charoncart bindings panel and is the same value as the Discount displayed on the page.

Any help would be greatly appreciated as this is for a college project.

thanks


Reply to this topic