What happens if I only have 1 product from categories_id 129, 131 or 132 ...
Are these the master_categories_id of the products?
Are there other categories? If so, what happens if those are in the cart?
What happens if I only have 1 product from categories_id 129, 131 or 132 ...
Are these the master_categories_id of the products?
Are there other categories? If so, what happens if those are in 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!
notthing happens now, I nned to have at least 6 items for checkout to proceed from this category ID 130 or at least 1 from the other IDs to make an order with any items from cat 130.
yes, master cat IDs that hold the products.
only worried about cat ID 130 as it is number 10 cans and it takes 6 to make an order OR if less than at least 1 other item from the other IDs for checkout to complete.
Can this be done here on the fourms ? as I will cancel the rentacoder bid..
You can test this and see if it works ...
add this code:
above the line that reads:Code:// bof: must have 6 130 or 1 129, 131, 132 if 1+ 130 $valid_products_checkout = false; $chk_cat130 = $_SESSION['cart']->in_cart_check('master_categories_id','130'); if ($chk_cat130 >= 6 || $chk_cat130 == 0) { $valid_products_checkout = true; } else { $chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','129'); $chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','131'); $chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','132'); if ($chk_cat_other > 0) { $valid_products_checkout = true; } if ($valid_products_checkout == false) { $messageStack->add_session('header', 'Add more products', 'caution'); zen_redirect(zen_href_link(FILENAME_SHOPPING_CART)); } } // eof: must have 6 130 or 1 129, 131, 132 if 1+ 130
in the files:Code:// Stock Check
/includes/modules/pages/checkout_shipping/header_php.php
/includes/modules/pages/checkout_payment/header_php.php
/includes/modules/pages/checkout_confirmation/header_php.php
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!
HTTP 500 error
try loging in with your account and add this item from ID 130
https://www.efpsupply.com/food/harve...7-16-bean-soup
then try to proceed with checkout
Turn off your SEO/rewrites for a test if things work correctly ...
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!
how do I do that ?
No idea I did not set that up on your site ... you might see if in your Admin there is a setting for SEO under the Configuration menu ...
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!