Hi,
After my customer places an order (which all works fine) they are taken to a "success" page which gives them their reference. At this point the order has been placed and I want the Cart emptied so that it doesn't confuse the user. If I use the "Empty Cart OnLoad" function I get an error:
Microsoft VBScript runtime error '800a0009'
Subscript out of range: 'J'
/dwzCart/dwzCartClass.asp, line 1509
If you click the "Back" button it shows one less item in the cart (i.e. it deleted just one line from the cart).
If I take out the "Empty Cart" code the page works fine but obviously the products stay in the cart.
Is there any other way (even manual coding) to clear the cart when this page loads?
I'm using version 1.1.9 of the Shopping Cart Extension.
I don't want to use the "Kill Cart" function when I create the order as I use "objCart.getOrderId()" on the next page to send an email to the site owner and the customer about their order, this page then redirects to the "success" page with the IdOrder as a querystring variable.
Hope you can help.
Regards,
Adrian.
|
|
|