Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Base price of $0.001 for quantities of 1,000 or more

Base price of $0.001 for quantities of 1,000 or more

30 Jun 2012, 4:43 AM
#1
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Post #1 by xwielder

I am selling a virtual good that has a minimum quantity of 1000. I would like to set the price-per-unit at $0.001 for this virtual product. So, if a customer chooses to buy 1,020, their price would be $1.02. Etc. etc.

Also, I have "Product Qty Units" set to 10.

However, when I set the product price to $0.001, the customer can choose to buy 1,870,000 and the total checkout price is $0.00

Is there any way to make a price for a virtual product less than $0.01? Do you see what I'm trying to accomplish?

Thanks.

30 Jun 2012, 5:11 AM
#2
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Post #2 by xwielder

I was able to change the "decimal_places" value in the Zen database currencies table. Since I use "US Dollar", I simply changed "decimal_places" from 2 to 3. That did work, however now all my prices display the "thousandths" place.

Is there any way I can just DISPLAY 2 decimal places but have code (non-seen) use the 3?

30 Jun 2012, 2:03 PM
#3
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Post #3 by xwielder

Sadly, changing decimal_places does not work either. For some reason, Zen Cart thinks that .001 x 1000 is 0.00 instead of 1.00. If anyone knows how to do this, it'd really help. Thanks.