Forums / General Questions / Why do my products show "1e+12 Units In Stock"?

Why do my products show "1e+12 Units In Stock"?

Locked

Views: 793

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Apr 2010, 2:00 PM
#1
nay27uk avatar

nay27uk

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Why do my products show "1e+12 Units In Stock"?

my products are always in stock they never run out, so I had to put for the Products Quantity: either 1000000 or 1000000000000 however if I put 1000000 1 million on the products pages Units in Stock: displays as 1e+06, if entering 1000000000000 on the products page Units in Stock: displays as 1e+12 how do I get it to display the numbers I entered

29 Apr 2010, 4:26 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Why do my products show "1e+12 Units In Stock"?

You would have to change your database table products so that the field can take larger numbers ...

Currently it is setup as a type for Float ... in addition to changing the setting you would need to go through the code and customize any references to float to manage the new field type ...

Currently the quantity can be set to: 999999

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Apr 2010, 4:27 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Why do my products show "1e+12 Units In Stock"?

Or disable the display of units-in-stock altogether if that number is really irrelevant to your products.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 May 2010, 9:27 AM
#4
nay27uk avatar

nay27uk

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Why do my products show "1e+12 Units In Stock"?

DrByte:

Or disable the display of units-in-stock altogether if that number is really irrelevant to your products.

great thats a good idea