Results 1 to 10 of 18

Hybrid View

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

    Default Re: Fractional Quantities

    Is everything like this? Where 0 is the absolute bottom line?

    Do you have your products show as Sold Out or do you have them set to products_status = 0 so they do not show in the shop?
    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!

  2. #2
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Fractional Quantities

    Thanks for clarifying Ajeh - I mis-wrote. I have Product Status set to 0 when out of stock. Is there something I'm missing to fix this?

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

    Default Re: Fractional Quantities

    Currently the reset on stock is < 1 but in your case you need <= 0 ...

    This has been changed for the next release ...

    You can edit the /includes/classes/orders.php and change the line around 688:
    PHP Code:
              if ($stock_left 1) { 
    To read:
    PHP Code:
              if ($stock_left <= 0) { 
    See if that takes care of this for you ...
    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
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Fractional Quantities

    Thanks Linda - that one seems to be working now. I just had to manually re-activate those products in the Admin section and all is well.

    But, now I have a new problem (!) that I seem to have caused myself... When folks place a quantity larger than what we have in stock, it is no longer giving them the warning on the checkout page. Instead, they click on checkout and it just send them right back - an infernal loop. The warning was there before, but I must have done something to make it go away. Can you help me recover what I've done?

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

    Default Re: Fractional Quantities

    If you flip to classic does it fix it?

    Do you have a click for click to produce this issue?
    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
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Fractional Quantities

    Eek - last time I switched to Classic someone lost their shopping cart and they were none too pleased with my antics...

    I can reproduce the problem myself because I've set up an account. If I select a quantity of 4 when there are only 3 in stock and then go to the shopping cart page, it no longer displays the warning that I need to adjust my order quantities. It used to show this warning along with *** next to the product in question, but it's no longer displaying the warning or the ***. Then, if I click on "Go to Checkout" it just sends me right back to the Shopping Cart page. This was working earlier today, so I know it's something I must have done...

    I searched in the DTK for "out of stock" and didn't see any files there I remember working with this morning, so that's why I thought maybe this minimum stock issue may have affected it...

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

    Default Re: Fractional Quantities

    Sounds like you cut out some code or changed a define or something ...

    Do you happen to have Beyond Compare from scootersoftware.com where you can compare a clean Full Zen Cart v1.3.0.2 to your files from your site?

    The functionality appears to be there ... but not the message ...

    Do a search in the Tools ... Developer's Tool Kit ... in the bottom input box for:
    OUT_OF_STOCK_CANT_CHECKOUT

    See where the defines are and where this is used ...

    Make sure that the defines are not blank ...

    Make sure that it is referenced in the tpl_shopping_cart_default.php ... this includes if you have an override file being used ...

    Also search for:
    STOCK_MARK_PRODUCT_OUT_OF_STOCK

    Make sure that is defined as well ...
    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!

 

 

Similar Threads

  1. gateways? fractional quantities?
    By cygnus in forum General Questions
    Replies: 2
    Last Post: 17 Nov 2010, 03:49 PM
  2. Can I add Fractional Qty's?
    By pumsd in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 29 Apr 2010, 03:15 AM
  3. Fractional Quantity Rounding Price
    By christianpatrick in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Apr 2009, 03:57 PM
  4. Fractional product quantities
    By Jack000 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jan 2008, 02:36 PM
  5. [Done v1.3.7] Error when setting fractional quantity.
    By millo_magno in forum Bug Reports
    Replies: 5
    Last Post: 7 Mar 2007, 05:55 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