Zen Cart Logo
Forums / Customization from the Admin / "Discount value" format

"Discount value" format

Locked

Views: 1,649

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Jun 2007, 3:16 PM
#1
narian avatar

narian

New Zenner

Join Date:
Jun 2007
Location:
London, England
Posts:
9
Plugin Contributions:
0

"Discount value" format

Can anyone tell me where I can change the format of the Discount Value field in the Product Quantity Discounts section (under Admin)?

The default format is a 4 decimal place float or double (not sure which) that looks like this 0.0000.

Currently, I'm trying to apply percentage discounts that give the Extended Price to be a rounded figure to the nearest dollar. I need the Discount Value field to be extended to 11 decimal places so that the rounding would work, i.e. 0.00000000000.

I'd be very grateful for any pointers, zenners...

10 Jun 2007, 4:55 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: "Discount value" format

The database is not designed for 11 decimal places ...

You would need to modify the products_discount_quantity table and change the field discount_price to 15,11

Now whether this would work correct is another story as this has not been tested ... :unsure:

11 Jun 2007, 9:53 AM
#3
narian avatar

narian

New Zenner

Join Date:
Jun 2007
Location:
London, England
Posts:
9
Plugin Contributions:
0

Re: "Discount value" format

Thank you, Linda. I did have a workaround for my problem which involved straight forward use of the attributes which I was previously unfamiliar with.

I'll give your solution a shot and post back if it works.

Cheers. :smile: