Alas it still does not work.
Just to make sure.
I have the voucher form on my shopping cart page before any "add to cart" buttons and outside any other form.
I enter the voucher code and press submit, then add items to the shopping cart, I see the discount in the shopping cart summary. (simple version worked this way)
echo("promo code: ".$_SESSION["PromoCode"]."<br />");
echo("promo amount: ".$_SESSION["PromoAmount"]."<br />");
I dont know exactly where to place this code.
I have tried to place this in various places on my page, each time it either will not display the page, disables the add to cart button or interferes with the add to cart function and will not display in cart. It also displays words "PromoCode" and PromoAmount" top left in the browser window outside of page content.
Do I need to create a new column for PromoCode in my ecart object.
** Can I have more than 1 ecart object?
I have attached the code for the page.
Thanks again for your help