My store is allowing checkout when out of stock
Yes, another noob. I have the stock by attributes mod installed.
I have the following settings in the stock portion of the admin:
Check stock level true
Subtract stock true
Allow Checkout false
Mark product out of stock ***
Stock Re-order level 5
Show available stock level in cart when less than order false
Products status in Catalog when out of stock should be set to 1
Show Sold Out Image in place of Add to Cart 1
Product Quantity Decimals 0
Show Shopping Cart - Delete Checkboxes or Delete Button 3
Show Shopping Cart - Update Cart Button Location 3
But when I checkout after selecting an item with more than on hand, a bright red notice says:
Products marked with *** are out of stock or there are not enough in stock to fill your order.Please change the quantity of products marked with (***). Thank you
In the shopping cart screen, which is cool, but zencart still allows me to press the
goto checkout button and continue the checkout process, even though the product is out of stock.
What am I doing wrong?
Re: Zen Cart allows checkout when out of stock
If you were not using the stock by attributes does it work properly?
Re: Zen Cart allows checkout when out of stock
Quote:
Originally Posted by
Kim
If you were not using the stock by attributes does it work properly?
To be honest, I don't remember. I don't know how much testing I did before I installed the stock by attributes, because the way my products work I needed it right away.
Until I can truly prevent a checkout when an item is out of stock I can't go live :(
Re: My Zen Cart is allowing checkout when out of stock
I don't believe the attribute stock can do what you want. You may want to look through other threads about the module.
Re: My Zen Cart is allowing checkout when out of stock
I'm not sure if it is an issue with the stock by attribute mod or not.
Even on stock that I don't have any attributes set, when I have the flag to not allow checkout when an item is out of stock it notifies me when it is out of stock but still allows both the 'checkout' button and the paypal one to be pressed.
Now I have no idea what to do.
Re: My Zen Cart is allowing checkout when out of stock
This is happening to me too and is really frustrating! I didn't find this out until we had products that were paid for that don't exist! Someone please help!
Re: My Zen Cart is allowing checkout when out of stock
Quote:
Originally Posted by
B-Unlimited
This is happening to me too and is really frustrating! I didn't find this out until we had products that were paid for that don't exist! Someone please help!
I have had exactly the same problem this afternoon. Have you found a solution yet?
Re: My Zen Cart is allowing checkout when out of stock
I'm sorry to resurrect an old thread, but I have the exact opposite problem. I have installed the stock by attributes contribution and it WAS working perfectly. Now, even though there is stock available, it will not allow checkout.
My settings are exactly as below. Maybe I am missing some other setting somewhere else in admin?
Quote:
Originally Posted by
twinstead
I have the following settings in the stock portion of the admin:
Check stock level true
Subtract stock true
Allow Checkout false
Mark product out of stock ***
Stock Re-order level 5
Show available stock level in cart when less than order false
Products status in Catalog when out of stock should be set to 1
Show Sold Out Image in place of Add to Cart 1
Product Quantity Decimals 0
Show Shopping Cart - Delete Checkboxes or Delete Button 3
Show Shopping Cart - Update Cart Button Location 3
But when I checkout after selecting an item with more than on hand, a bright red notice says:
Products marked with *** are out of stock or there are not enough in stock to fill your order.Please change the quantity of products marked with (***). Thank you
Re: My Zen Cart is allowing checkout when out of stock
I was able to fix this problem in my store by modifying a line in \includes\modules\pages\checkout_shipping\header_php.php. For some reason my file had:
Code:
if (zen_check_stock($products[$i]['id'], $products[$i]['quantity'])) {
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
break;
}
when it needed to be:
Code:
if (zen_check_stock($products[$i]['id'], $products[$i]['quantity'], $attributes)) {
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
break;
}
I hope it helps someone.
Re: My Zen Cart is allowing checkout when out of stock
Quote:
Originally Posted by
david_johns
I was able to fix this problem in my store by modifying a line in \includes\modules\pages\checkout_shipping\header_php.php. For some reason my file had:
Code:
if (zen_check_stock($products[$i]['id'], $products[$i]['quantity'])) {
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
break;
}
when it needed to be:
Code:
if (zen_check_stock($products[$i]['id'], $products[$i]['quantity'], $attributes)) {
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
break;
}
I hope it helps someone.
Did this work for anyone? It looks like this was applied to an updated version of the mod but I am still seeing this problem. Everything else seems to be working perfectly.