www.uburst.com www.uburst.com

"uShopJSI.addProduct and Cart error"

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

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"uShopJSI.addProduct and Cart error"
Posted by jdempsey on Mar-10-02 at 06:20 PM (EST)
I was looking for a way that the total weight would be entered into an order. So I used uShopJSI.addProduct coupled to the "order" button.

This adds an "item" TOTAL WEIGHT qty = "weight". I used the quantity field so the total wasn't added twice. It may not matter.

The trouble starts when you try to remove the weight entry from the cart. If you click the new entry the item ABOVE it is erased. If you highlight the line BELOW the weight line you can erase it. . .

Weird! Test page URL below.

http://www.kayneandson.com/catalog/pages/test.htm

The error seems to be some bug in the item count or an error in the addProduct routine. I was going to use it elsewhere but would like to sort this out first.

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: uShopJSI.addProduct and Cart er..., Bill Weiner, Mar-12-02, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: uShopJSI.addProduct and Cart error"
Posted by Bill Weiner on Mar-12-02 at 06:15 AM (EST)
The problem is related to how the "Remove" button on the shopping cart identifies continuation lines in the cart.... and the way that you are setting the Product "Name" parameter to just a blank space (" "). That is, because your WEIGHT line starts with a blank space.... it is being interpretted by the uShopCart applet as a continuation line... and thus is being skipped. To correct this problem, there are two options:

OPTION 1: If you don't need the "NAME" column displayed in your shopping cart... then set then hide it by setting the "columns_name" parameter to "0".

Or

OPTION 2: If you do want to keep the "NAME" column in displayed in the shopping cart, then set the NAME value of your special WEIGHT JavaScript to anything other than a blank space.

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.