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
uShopJSI.addProduct and Cart error

Knowledge Base Lobby : uShop Support Conference : General Questions
Dec-12-17 06:55 PM EST
Original Message
uShopJSI.addProduct and Cart error
Author jdempsey on 03-10-2002 at 18:20 (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.

E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: uShopJSI.addProduct and Cart error Bill Weiner, 2002-03-12 06:15:42 (1)

Messages In This Discussion
         1. RE: uShopJSI.addProduct and Cart error
        Author Bill Weiner on 03-12-2002 at 06:15 (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.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.