Still adds it to the cart, but stops it at check out.
Still adds it to the cart, but stops it at check out.
That is all it does ... flag the products that cause the problem and not allow checkout until the quantity is fixed ...
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, You were quick to find a solution for the bug and fix it. It'll help a lot of people keep from selling products they don't have.
Wish I was working so I could afford to send you a donut and coffee.
Who do I send a request for a few more generic flat rate shipping modules ?
One flat.php for usps flatrate boxs and packages aren't enough.
I took flat.php and edited it and it worked fine, but wouldn't go past the select shipping page.
You would have to post a new thread and what you are trying to do and perhaps the code that you are using to see why it is broken with details on how to you need it to work and maybe someone will look at it and try to help you ...
Otherwise, you can look at the Recommended services for any that help write custom code for hire ...
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!
NOTE: these would be better checks on the extra stock check:
Code:// if ( (zen_get_products_stock($products[$i]['id']) - ($_SESSION['cart']->in_cart_mixed($products[$i]['id']) - $_SESSION['cart']->get_quantity($products[$i]['id']))) <= 0) { if ($_SESSION['cart']->in_cart_mixed($products[$i]['id']) > zen_get_products_stock($products[$i]['id'])) {Code:// if ( (zen_get_products_stock($order->products[$i]['id']) - ($_SESSION['cart']->in_cart_mixed($order->products[$i]['id']) - $_SESSION['cart']->get_quantity($order->products[$i]['id']))) <= 0) { if ($_SESSION['cart']->in_cart_mixed($order->products[$i]['id']) > zen_get_products_stock($order->products[$i]['id'])) {
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!
I believe that the same issue applies to the quantity in cart feature on the product_info page. By which I mean that with two identical products, except for text attributes that differ, the quantity in cart is shown as 1. I am working on a 'far from clean' install so perhaps I am mistaken.
I also wonder if corresponding changes need to be made to ipn_main_handler.php ? Sort of similar to the changes required by stock by attributes.
Nick
iszent.com
Make sure that in the Configuration ... Stock ... you have turned on the Stock Check:
Check stock level
Check to see if sufficent stock is available
trueSubtract stock
Subtract product in stock by product orders
trueMake sure that on the Product you have set:Allow Checkout
Allow customer to checkout even if there is insufficient stock
false
Make sure that you made the extra stock check on the:Product Qty Min/Unit Mix: Yes
/includes/modules/pages/shopping_cart/header_php.php
/includes/modules/pages/checkout_shipping/header_php.php
/includes/modules/pages/checkout_payment/header_php.php
/includes/modules/pages/checkout_confirmation/header_php.php
I am also assuming that you are using the current Zen Cart v1.5 ...
from above ...
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!