Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default Decimal quantity eg. 2.5 lbs

    Search returned nothing. Seems to me I saw a config entry where I could set the quantity to something other than a whole number. IE 2.5 pounds. Now I can find it or maybe I dreamed it.

    Please tell me where to go ( politely )

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Decimal quantity eg. 2.5 lbs

    For letting customers purchase using fractional quantities, you must adjust two settings:
    1. Admin->Configuration->My Store ... set number of decimal places, 0, or 1 or 2, etc
    2. Within each product, set the minimum qty intervals, ie: 0.1 or 0.01 or whatever is required for your need
    .

    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.

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

    Default Re: Decimal quantity eg. 2.5 lbs

    NOTE: If you want to enter weight as 2.5 ... you do not need to change decimals ...

    If you want quantity with 2.5 then you need the decimal setting that DrByte has indicated ...
    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!

  4. #4
    Join Date
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default Re: Decimal quantity eg. 2.5 lbs

    Zen Cart 1.3.9d

    Conf/mystore the only decimal is the "Tax Decimal Places".
    I set the Min Qt to 0.5 on the item and it shows on the display as Min 0.5 - but...

    The quantity added to your cart has been adjusted.
    The item you wanted is not available in fractional quantities.
    The quantity of item: Breakfast, has been changed from: 2.5 to 3

    (five min later)
    Ah, the trick with Google is using the right words in the query - I had been asking for decimal - Google know the answer as "fractional quantities". article=324.

    A/Conf/Stock->Product Quan. Decimals = 0,1,2,3
    A/Cat/..item(prod) Qty Min AND Units set to 2.5

    That works - not sure I like the way it shows up on the sales page and works. Thinking maybe I might "Attribute" it as 2.5, 10, 20 because setting to 2.5 allows an order of 5 pounds - which I guess could be 2x2.5 but sure as L someone will look at the order and say "Hu? We don't sell no 5# packages." I've got another item, Hot Italian, that can come as 3, 4 or 5 per flat and that works better. He can't sell 5/10/20 - <sigh>

    Thanks

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

    Default Re: Decimal quantity eg. 2.5 lbs

    If your Minimum is 0.5 ... Make sure that you set the Units to 0.5 or you won't be able to add 0.5 to the cart ...
    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!

  6. #6
    Join Date
    Jul 2009
    Posts
    104
    Plugin Contributions
    0

    Default Re: Decimal quantity eg. 2.5 lbs

    There is lies the problem. It's not .5 it's 2.5 or 10 or 20 pounds. The problem of setting the units to 2.5 is that someone will order [3=] 7.5 pounds and the person filling the order will get confused. So I plan on doing attrubutes of 2.5, 10, 20. That way if you want 3 ea 2.5# packages you order 3. Or you order 12 2.5 = 30# or 3 10s gets you 30#. Depends on what the end game is. A grocery store need the 2.5# for the meat counter, the restaurant need (because it's easier) the 20# bulk box which they put in the cooler.

    Thanks for the help.

 

 

Similar Threads

  1. Comma as decimal separator in quantity field
    By dee_d_lady in forum Basic Configuration
    Replies: 0
    Last Post: 15 Sep 2013, 08:16 PM
  2. Quantity Discounts for Decimal Quantities
    By jlcweb in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 3 Nov 2011, 09:51 PM
  3. Comma as decimal separator in quantity field
    By miriam_t in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 28 Dec 2010, 04:05 PM
  4. Comma as decimal separator in quantity
    By cricri in forum Basic Configuration
    Replies: 2
    Last Post: 6 Dec 2009, 08:07 PM
  5. Quantity in decimal
    By tekkjeskj in forum Basic Configuration
    Replies: 0
    Last Post: 21 Mar 2007, 02:42 PM

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