www.uburst.com www.uburst.com

"Shopping Cart - Doesn't clear on purchase"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Problems with trying to place orders.
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Shopping Cart - Doesn't clear on purchase"
Posted by Chris Freeman on Jun-10-02 at 07:47 AM (EST)
After processing an order and you return to the store the cart still has all the same contents as before?
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Shopping Cart - Doesn't clear o..., Bill Weiner, Jun-11-02, (1)
Thank you, Chris Freeman, Jun-11-02, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Shopping Cart - Doesn't clear on purchase"
Posted by Bill Weiner on Jun-11-02 at 05:37 AM (EST)
There are only three ways to clear the cart:

1) The customer exits his/her browser (which is typically done after an order is placed.)

2) The customer uses the "Remove" button or the Delete key on the uShopCart applet to remove items.

or

3) You implement a JavaScript that utilizes uShop's clearCart() function call clear the cart after an order is placed.

To implement option 3, here are some steps:

STEP 1) First choose an HTML page that the customer will typically go to after an order is placed (like the page you link customers to after they place an order.)

STEP 2) On that HTML page, add the following JavaScript somewhere ABOVE the < BODY > line:

< SCRIPT LANGUAGE="Javascript" >
function clearCustomersCart()
{
document.uShopJSI.clearCart();
}
< /SCRIPT >

STEP 3) On that HTML page, add an "onLoad" function call to the < BODY > line, for example:

< BODY BGCOLOR="#FFFFFF" TEXT="#000000" onLoad="clearCustomersCart();" >

Note how the onLoad function calls the new clearCustomersCart() function that was created/added in Step 2.

STEP 4) Also on that HTML page, be sure to add the uShopJSI applet. This applet is typically added to the very bottom of the HTML page... just BEFORE the closing < /BODY > line:

< applet code="uShopJSI.class" codebase="../classes/" name="uShopJSI" width="2" height="2" >
< /applet >

Refer to the uShop Programmer's guide for more information about using JavaScripts with uShop:

http://www.uburst.com/uShop/reference/programmers_guide.html

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Thank you"
Posted by Chris Freeman on Jun-11-02 at 01:37 PM (EST)
Your help is greatly appreciated, I've always be a forum doubter but you have really helped really quickly I appreciate your time.

Regards,

Chris

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.