DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Shopping Cart  
DwZone Forum Index -> Shopping Cart

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 111 to 120 of 197 (Total: 93) First |  Prev |  Next |  Last  
 Subject Author Date  
   Database distinti per carrello e prodotti  
View this persons public profile  [email protected]   10:17 29 Nov 2006  
   Re:Database distinti per carrello e prodotti  
View this persons public profile  gianluigi   10:25 29 Nov 2006  
   Update Cart to update user checkbox  
View this persons public profile  [email protected]   9:18 15 Nov 2006  
   Re:Update Cart to update user checkbox  
View this persons public profile  gianluigi   10:49 15 Nov 2006  
    Error when using Empty Cart OnLoad  
View this persons public profile  [email protected]   14:00 13 Oct 2006  
 
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.

 
Reply to this current thread  View this persons public profile  Send Private Message
   Re:Error when using Empty Cart OnLoad  
View this persons public profile  gianluigi   14:58 13 Oct 2006  
   Sempre io  
View this persons public profile  [email protected]   0:00 5 Sep 2006  
   Re:Sempre io  
View this persons public profile  gianluigi   0:19 5 Sep 2006  
   La posta  
View this persons public profile  [email protected]   23:59 4 Sep 2006  
   Re:La posta  
View this persons public profile  gianluigi   0:18 5 Sep 2006  
Last Visit: Tuesday 24 Dec, 2024 2:28 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: