www.uburst.com www.uburst.com

"addProduct API occasionally doesn't add items"

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
 
"addProduct API occasionally doesn't add items"
Posted by David Futcher on Mar-13-03 at 10:04 PM (EST)
Have there been any known problems with some users not being able to add items via the uShopJSI addProduct API? For some users, the items are sometimes not being added to their carts.

The biggest problem is that the client who owns the site is one of those who sometimes can't get it to work! At the same time, I can sit at my machine and everything works fine.

One page we've seen this happen on is http://flagline.com/bigflag.php?title=Service%20Banner . Is this an isolated problem, or maybe a simple small typo on my part?

We've used uShop for several years, and are looking forward to the new release. Thanks for your support!

David

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: addProduct API occasionally doe..., Bill Weiner, Mar-14-03, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: addProduct API occasionally doesn't add items"
Posted by Bill Weiner on Mar-14-03 at 06:44 AM (EST)
Usually, if there are any problems using the uShopJSI API.... the problem is related to the JavaScript calling the API. That is, some browsers are more forgiving about errors in JavaScript than other browsers.... and in some cases, the actually functionality of JavaScripts differs from one browser type to another. So when using the uShopJSI, it is best to test your JavaScripts out on the various browser you want to support.

Now usually if the problem is related to a specific JavaScript, the problem is constantly repeatable when using that same OS/browser. Do you know if the client is using the same (or a different) OS/browser when seeing the error?

Also, what is the actual error that he is seeing? Does the item just not appear in the cart? Or from looking at your site, I see you popup an "alert()" window once an item is added...Does he always see the alert() window after pressing the "buy now" button?

If the item occasionally does not appear in the cart, then that could be related to your codebase setting. I see your uShopJSI codebase is currently set to the full URL of your classes (http://www.flagline.com/u3/classes/) while your uShopCart and uShopInitialize applets have a relative codebase setting (/u3/classes/). Although the codebase paths resolve to the same directory on your server, some browsers may not interpret them to be the same... so the recommended thing is to use the EXACT same codebase setting for all of your applets... And since you are dynamically generating the page from PHP, it would be safest to just use the full URL as the codebase of all of your applets ... including your "display_cart.html" page. (See http://www.uburst.com/uShop/codebase.html for more information on that.) Note: If the codebase was the problem, however, the problem would be consistent with the browser type being used. So if the problem is randomly occurring on the same OS/browser... then you're codebase is probably not the problem.

If the problem is that occassionally nothing appears to happen when pressing the "buy now" button.... and not even your alert() window is displayed.... then that points to a possible problem in the JavaScript. I took a brief look at your addProduct() JavaScripts ... and they look Ok.... Although, I think ideally you need a semicolon at the end of your alert() function calls ... but I don't think that is really a problem.

Anyway, check the above two items out... and if you don't notice anything, see if you can provide more information about:

1) What is actually the problem being seen (item not adding to cart, no action at all after pressing the "buy now" button, etc.)?

2) What browser(s) are being used when the problem is being seen?

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


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.