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
Large shopping cart data lost

Knowledge Base Lobby : uShop Support Conference : Applets are not adding items to Shopping Cart
Oct-22-17 05:54 AM EST
Original Message
Large shopping cart data lost
Author Ron Verrazzani on 11-12-2000 at 16:06 (EST)
RE: www.laila.com

Site is uploaded and when an item or items are added to the large shopping cart, they disappear if I go to another page in the site then come back to the shopping cart. Also, if an item is added to the shopping cart and I then go to the "place order" page where I use the "uShopOrderButton2.class" applet, no items will appear on the next screen (the cart preview). What's the deal?
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Large shopping cart data lost Bill Weiner, 2000-11-13 08:38:58 (1)
            Your Suggestions Didn't Work Ron Verrazzani, 2000-11-17 11:47:14 (2)
                 RE: Your Suggestions Didn't Work Bill Weiner, 2000-11-17 17:12:30 (3)
                      I'm Very Confused Ron Verrazzani, 2000-11-17 18:59:08 (4)
                           RE: I'm Very Confused Bill Weiner, 2000-11-18 08:40:16 (5)
                                Resolved The Problem Ron Verrazzani, 2000-11-18 11:42:03 (6)

Messages In This Discussion
         1. RE: Large shopping cart data lost
        Author Bill Weiner on 11-13-2000 at 08:38 (EST)
I took a look at your site and believe I see the problem. That is, it appears that the JavaScript code that is associated with your "Your Shopping Cart" buttons:

onClick=location="http://www.laila.com/store/shopping_cart.htm"

...is making IE browsers to think the new page has a different codebase. I'm not sure why that is happening... but think it is related to the JavaScripts that you are using to dynamically add content to your web pages. That is, when viewing the source of your pages with Netscape, they are titled as "wysiwyg".... which basically indicates that content is being dynamically generated.

Normally, if you dynamically generate the HTML pages with the uShop applets on them, you actually have to use the FULL URL of your classes directory as the codebase instead of the relative "../classes/" path as the codebase. So normally for dynamically generated web pages, I would say to try using the FULL URL as the codebase of your applets....as described in Section 3 at:

http://www.uburst.com/uShop/codebase.html

But in your case, I don't think you are dynamically generating the entire HTML page ... just some of the content that is displayed on the page. Furthermore, everything appears to work fine... until after you press that "Your Shopping Cart" button.

So here is what I would suggest (in this order):

1) Try changing the onClick() call associated with one of your "Your Shopping Cart" buttons from:

onClick=location="http://www.laila.com/store/shopping_cart.htm"

To just:

onClick=location="shopping_cart.htm"

... And see if that relative link will work (as opposed to using the FULL URL as the link there).

2) If that doesn't work, then as a test, try adding a regular HTML link (not using JavaScript) to link to your "shopping_cart.htm"... and see if that makes any difference.

3) And if that doesn't work, then you may just have to use the FULL URL of your classes directory as the CODEBASE of all of your applets.

NOTE: If I miss-interpretted how your pages are setup - particularly in regard to what is/isn't being dynamically added to your HTML pages - then let me know and I will take another look at them.
TABLE OF CONTENTS
                 2. Your Suggestions Didn't Work
                Author Ron Verrazzani on 11-17-2000 at 11:47 (EST)
I have gone through all of your suggestions in fixing my shopping cart problems. Items still dissappear when going from page to page, especially if going from the main shopping cart to the order button page.

I cannot figure out why this is happening and it is beginning to affect our business. Do you have any further suggestions before we abandon uShop for something more sophisticated?
TABLE OF CONTENTS
                         3. RE: Your Suggestions Didn't Work
                        Author Bill Weiner on 11-17-2000 at 17:12 (EST)
I took another look at your site and going with the full URL as the codebase for your site is definitely the right way to go.

As for why the page with the large shopping cart applet seems to be clearing the shopping cart, I still do not know... but it seems to be related to your JavaScripts in combination with the "onClick" action that you have associated with your "Your Shopping Cart" button. For instance, on your "buy_giftset_duo.htm" page, if you add items to your shopping cart and then press your "Your Shopping Cart" button... the shopping cart on your "shopping_cart.htm" page will appear empty. However, on your "buy_giftset_duo.htm" page, if you add items to your shopping cart and go to your "shopping_cart.htm" page by just typing that URL into your browser... everthing stays in the browser just fine. (This is particularly obvious with IE).

So are you sure you tried replacing those "Your Shopping Cart" buttons with just regular HTML links?
TABLE OF CONTENTS
                                 4. I'm Very Confused
                                Author Ron Verrazzani on 11-17-2000 at 18:59 (EST)
On my system, using IE5.5, if I go to the "buy_giftset_duo.htm" page click the ADD button, the item is added to the small shopping cart on the same page and if you then click the "Your Shopping Cart" button, it appears there as well. The problems start when CHECK-OUT is clicked from the shopping_cart.htm page. There is nothing in the shopping cart when I get to that page.
TABLE OF CONTENTS
                                         5. RE: I'm Very Confused
                                        Author Bill Weiner on 11-18-2000 at 08:40 (EST)
Strange indeed. I seem to get different results depending on if I exit/restart my browser between each try. But I think I found a scenerio that will isolate the problem.

This scenerio should NOT work:

STEP 1: Exit and restart IE.
(To make sure nothing is left over in the browser's cache)

STEP 2: Go directly to the URL:
http://www.laila.com/store/buy_giftset_duo.htm

STEP 3: Add a couple items to the Shopping Cart
(The items appear in the small shopping cart)

STEP 4: Press "View Shopping Cart" button.
(A window pops-up and the items are displayed in the large shopping cart)

STEP 5: Close the pop-up window.

STEP 6: Press the "Check-out" button.
(The small shopping cart on the "order_form.htm" page is EMPTY.)

Now try the same scenerio - without closing the pop-up window. This scenerio SHOULD WORK:

STEP 1: Exit and restart IE.
(To make sure nothing is left over in the browser's cache)

STEP 2: Go directly to the URL:
http://www.laila.com/store/buy_giftset_duo.htm

STEP 3: Add a couple items to the Shopping Cart
(The items appear in the small shopping cart)

STEP 4: Press "View Shopping Cart" button.
(A window pops-up and the items are displayed in the large shopping cart)

STEP 5: DO NOT CLOSE THE POP-UP WINDOW (just leave it up).

STEP 6: Press the "Check-out" button.
(The items ARE displayed in the small shopping cart... and the ORDER PROCESS WORKS!!!).

So this leads me to believe that something weird is going on with that pop-up window.... Perhaps related to the "javascript:window.close();" action. I would just suggest trying to avoid using that pop-up window to display the large cart.
TABLE OF CONTENTS
                                                 6. Resolved The Problem
                                                Author Ron Verrazzani on 11-18-2000 at 11:42 (EST)
Well, it looks as though the culprit is the large shopping cart applet. Whenever I would add items to the cart then go to the shopping cart page then go to the order button page, the items were consistently lost. So, I have made the shopping cart page a pop-up and only for viewing the contents of the cart. There are no links from the shopping cart page to anything else. There seems to be a glitch when going from the shopping cart page to somewhere else. That's when things go bad.

The site is performing normally now. However, the shopping cart applet shouldn't be a problem. Maybe it needs some looking into. Anyway, thanks for your help and suggestions. Nice to know there's someone out there listening at least!
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.