uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
Shopping Cart - Doesn't clear on purchase

Knowledge Base Lobby : uShop Support Conference : Problems with trying to Place Orders
Jul-23-18 11:13 AM EST
Original Message
Shopping Cart - Doesn't clear on purchase
Author Chris Freeman on 06-10-2002 at 07:47 (EST)
After processing an order and you return to the store the cart still has all the same contents as before?

Table Of Contents
  RE: Shopping Cart - Doesn't clear on purchase Bill Weiner, 2002-06-11 05:37:40 (1)
            Thank you Chris Freeman, 2002-06-11 13:37:46 (2)

Messages In This Discussion
         1. RE: Shopping Cart - Doesn't clear on purchase
        Author Bill Weiner on 06-11-2002 at 05:37 (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.


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()

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:
                 2. Thank you
                Author Chris Freeman on 06-11-2002 at 13:37 (EST)
Your help is greatly appreciated, I've always be a forum doubter but you have really helped really quickly I appreciate your time.



© 2003 Microburst Technologies, Inc.