Page 1 of 5 123 ... LastLast
Results 1 to 10 of 48
  1. #1
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default quantity deicimals

    i try to add to cart 1122.24, but can only get as far as 1122.2, wont let me get beyond that from product info page, but once in cart can add in the 4 then, how do i change this

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: quantity deicimals

    One place to look is the units for the product in the product informtion page. Generally speaking items are added in whole numbers, so setting up to accept decimals is one part, then setting up for hundreths is yet another.

    Verify that on the product page for the item(s) in question any amount identified in the units box. If it currently is 0.1 or not 1, then please report. There may be other configuration settings to adjust.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: quantity deicimals

    Units should be:
    .01

    as you want .24 to work ...

    Next, you need to update your template using your templates and overrides for:
    Code:
                if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
                  // hide the quantity box and default to 1
                  $the_button = '<input type="hidden" name="cart_quantity" value="1" " maxlength="8" size="8" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                } else {
                  // show the quantity box
        $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="8" size="8" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                }
    Then you need to adjust the setting for how many decimals you allow on quantity in the Configuration ... Stock ... and set this to 2:
    Product Quantity Decimals
    Allow how many decimals on Quantity

    0= off

    0
    1
    2
    3
    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!

  4. #4
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: quantity deicimals

    Thank you

  5. #5
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: quantity deicimals

    517.8 does not work
    517.81 works
    how do i get both Decimals working?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: quantity deicimals

    Quote Originally Posted by jimmie View Post
    517.8 does not work
    517.81 works
    how do i get both Decimals working?
    Would help to be more descriptive. What does it mean not to work?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: quantity deicimals

    Warning Please update your order.
    The item: SFI Floors Highlands 12.3mm Laminate Flooring-Barnwood ... Quantity Units errors -
    You ordered a total of: 517.8 Min: 17.26 Units: 17.26

  8. #8
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: quantity deicimals

    30 x 17.26 is 517.8

  9. #9
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: quantity deicimals

    517.80, Does that work? Seeing as two decimals works. Doesn't seem right that 517.81 works. Does 517.82 or another number up to the next multiple work also?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: quantity deicimals

    Zen-cart makes the 0 disapear
    2 decimals or even a whole number work, as you can see from earlier in this post i did that to get it to work with to decimals
    Last edited by jimmie; 11 Nov 2014 at 05:11 AM.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Need to Offer Quantity Discount Depending on Total Cart Quantity
    By ikernbecauseicare in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 3 Feb 2011, 01:26 AM
  2. Position quantity update button under quantity box
    By JC.M in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Feb 2010, 02:43 PM
  3. Price by attributes - quantity discount and minimum quantity required
    By josefine in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 24 Sep 2009, 07:28 PM
  4. quantity discount for checked attributes NOT product quantity
    By adod in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Mar 2009, 06:39 PM
  5. Quantity Total in Shopping Cart Sidebox with Quantity Discount Contribution
    By maineiac13 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 14 Oct 2008, 08:40 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