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
Price showing a negative number?

Knowledge Base Lobby : uShop Support Conference : Problems with trying to Place Orders
Nov-18-17 05:19 AM EST
Original Message
Price showing a negative number?
Author Dawn on 10-16-2001 at 13:33 (EST)
When I add the price of the item and it goes to the shopping cart as a negative number.

For Example...

The price is $20.00
When you checkout the price reads $-4380.99

Did I add a value wrong?
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Price showing a negative number Joseph Pishgar, 2001-10-16 13:49:28 (1)
            Here's the link.... Dawn, 2001-10-16 13:53:09 (2)
                 This is strange.... Dawn, 2001-10-16 15:26:09 (3)
                      RE: This is strange.... Joseph Pishgar, 2001-10-16 15:35:32 (4)
                           Also.. Joseph Pishgar, 2001-10-16 15:40:34 (5)
                                Codebase is correct Jake Bryant, 2001-10-16 15:51:42 (7)
                           Nope... Dawn, 2001-10-16 15:46:48 (6)
                                still working Jake, 2001-10-16 15:54:00 (8)
                                     leaving now... Dawn, 2001-10-16 15:57:51 (9)
  Got it to work!! Dawn, 2001-10-18 14:57:32 (10)
            RE: Got it to work!! Joseph Pishgar, 2001-10-19 12:44:31 (11)

Messages In This Discussion
         1. RE: Price showing a negative number
        Author Joseph Pishgar on 10-16-2001 at 13:49 (EST)
Interesting!
I've not seen that type of problem before...
Wasn't even aware that uShop had the ability to compute negative totals. Go ahead and post a URL to where this is occuring and I'll see if I can't diagnose this strange problem.

Regards,
Joseph Pishgar
Microburst Technologies, Inc.
www.uburst.com
TABLE OF CONTENTS
                 2. Here's the link....
                Author Dawn on 10-16-2001 at 13:53 (EST)
Leave it to me to bring a new problem to your attention...lol

Here's the link to the page:
http://63.124.102.117/store/html/liquid_gel/product1.htm

Click on the add button and then go here:
http://63.124.102.117/store/html/cart/shopping_cart.htm

Thanks!
TABLE OF CONTENTS
                         3. This is strange....
                        Author Dawn on 10-16-2001 at 15:26 (EST)
A couple of the prices are working right. This doesn't make any sense to me.....
TABLE OF CONTENTS
                                 4. RE: This is strange....
                                Author Joseph Pishgar on 10-16-2001 at 15:35 (EST)
AHA!
Going to the first URL you provided me with..
http://63.124.102.117/store/html/liquid_gel/product1.htm

I can see in your HTML that the codebase for the uShopInput4 applet you are using is incorrect. Currently, it reads-
CODEBASE="../../classes/"
What it *should* read is most probably
CODEBASE="../classes/"

Additionally, make double sure you uploaded the class files in BINARY mode as opposed to ASCII.
Hope this helps.

Regards,
Joseph Pishgar
Microburst Technologies, Inc.
www.uburst.com
TABLE OF CONTENTS
                                         5. Also..
                                        Author Joseph Pishgar on 10-16-2001 at 15:40 (EST)
You can find a full explanation of the codebase parameter and how it works along with some helpful tips at-

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

-Joseph Pishgar
TABLE OF CONTENTS
                                                 7. Codebase is correct
                                                Author Jake Bryant on 10-16-2001 at 15:51 (EST)
Dawn, the codebase is correct, but to check on whether those class files were uploaded in binary (might not have been, since they were uploaded with FP), I will send you the directory of all the class files. Then, go in via ftp, delete the classes directory and upload the new one (making sure its going up in binary mode). Call me tomorrow morning (I am free between 10-1) and we'll see if that works.

Jake
TABLE OF CONTENTS
                                         6. Nope...
                                        Author Dawn on 10-16-2001 at 15:46 (EST)
I took out the first set of ../ and now it doesn't read at all...just a gray box.

The ones that do work have the ../../classes codebase.

TABLE OF CONTENTS
                                                 8. still working
                                                Author Jake on 10-16-2001 at 15:54 (EST)
Still at work? I thought you would have left by now.
TABLE OF CONTENTS
                                                         9. leaving now...
                                                        Author Dawn on 10-16-2001 at 15:57 (EST)
I'm going! lol
I'll work on this tomorrow...thanks for the advice!
TABLE OF CONTENTS
         10. Got it to work!!
        Author Dawn on 10-18-2001 at 14:57 (EST)
I got the prices to work right! I figured I'd post what the problem was here so that if someone else has the same problem then they'll know what to look for.

I talked to a someone from Uburst Tech Support on the phone and we were troubleshooting the code. Since some of the prices worked, I was told to try to copy and paste the code into an item that didn't work. I changed all of the parameters accordingly and tested. It worked! The other codes must have been corrupted in some way. We aren't sure though.
So I went through and replaced all the code in the others. I went back and tested them again and all but three worked. I couldn't understand why they weren't working if I used the same code. I checked to make sure the parameters were the correct way and they were. I went back and took out the Option1 parameter and tested it. The price came out right. The Values in the Option1 parameter have sizes in them, such as Men's Small Sizes 7-9. I took out the Sizes, tested it and it worked. Then I put the 7-9 back in and a negative number came up. So I realized it had to be those numbers. I replaced the "-" with "to" and then tested it again. It worked! The problem was the dash character.

I replaced the other two and now they all work!
TABLE OF CONTENTS
                 11. RE: Got it to work!!
                Author Joseph Pishgar on 10-19-2001 at 12:44 (EST)
Hah!
KNEW it was in the code somewhere...
Glad you got it working!
I'll go ahead and add this to our knowledge base.

If you have any further difficulties, please do not hesitate to contact us.

Regards,
Joseph Pishgar
Microburst Technologies, Inc.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.