uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Removing Products when a page loads

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-21-17 06:18 PM EST
Original Message
Removing Products when a page loads
Author Ken Krickbaum on 02-03-2000 at 18:12 (EST)
Hello again!

This time I have a rather simple question.

I need to Remove all of the products from the Shopping cart when a page loads.

I would like to use the onload="" function.
With not understanding all of your JAVA code for uShopProducts.class, I would like to find out the call to make.

A simple call from the HTML onload to execute the uShopProducts.removeAllProducts() method is all that I need.

Thanks again,
Ken
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  java source charlie edmunds, 2000-02-03 20:06:26 (1)
  GOT it!! And here is the code Ken Krickbaum, 2000-02-03 21:57:17 (2)

Messages In This Discussion
         1. java source
        Author charlie edmunds on 02-03-2000 at 20:06 (EST)
Ken,

I don't know myself. I'll forward your question to our developers.

Charlie Edmunds
Microburst Technologies, Inc.
TABLE OF CONTENTS
         2. GOT it!! And here is the code
        Author Ken Krickbaum on 02-03-2000 at 21:57 (EST)
Well, it wasn't easy, but I got it.

I just created a class file for removing all items in the shopping cart when the page is loaded.

Here is the applet HTML code (without the Greater than and less than signs)


applet CODE="RemAlluShop.class" codebase="/scripts/ushop/" WIDTH="0" HEIGHT="0"
/applet


Anyone who wants the RemAlluShop.class file that I created, just email me.

And for those who are afraid of code from someone you don't know, then here is the Java code to compile.

import java.applet.Applet;
import java.awt.*;

class RemAlluShop extends uShopCartBase {

public void init() {
uShopProducts.removeAllProducts();
}
}

Hope this helps someone.

It is great if your are processing orders through and app and return a reciept page outside of uShop, then the receipt page clears out the shopping cart.


Thanks edmond for the try.

Ken
ceo@yippyyahoo.com

TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.