Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Location
    London, England
    Posts
    9
    Plugin Contributions
    0

    Default "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...

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Jun 2007
    Location
    London, England
    Posts
    9
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v154 Deleting an Option with a "TEXT" or "FILE" value for ALL products
    By kcb410 in forum Setting Up Categories, Products, Attributes
    Replies: 26
    Last Post: 3 Feb 2015, 08:18 PM
  2. v150 Is this a bug in v1.50? orders_total doesn't output "text" but "value"
    By inception in forum General Questions
    Replies: 10
    Last Post: 10 Sep 2012, 05:38 AM
  3. Change Invoice Wording from "Group Discount" to "Customer Discount"
    By OLD MAN in forum Customization from the Admin
    Replies: 1
    Last Post: 21 Oct 2011, 06:58 PM
  4. Cant change the value "true" and "False" everywhere!
    By smartboy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Nov 2010, 02:22 PM
  5. Trouble understanding "1st Discount Coupon" and "New Signup" discount
    By STFlats in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Aug 2008, 10:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR