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?
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!
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?
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:
To read:PHP Code:if ($stock_left < 1) {
See if that takes care of this for you ...PHP Code:if ($stock_left <= 0) {
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!
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?
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!
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...
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!