You would need the master_categories_id for the Category with the products:
Code:$chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','96');
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: v1.5.5]
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!!
Thanks!! Summary:
I enabled flat rate shipping, excluded some items/categories (I chose based on weight, size, ect), so if those excluded items are added to the cart, the flat rate shipping option is not available. This works as expected (thanks Linda!!!).
I decided to leave the USPS and UPS modules alone, since I still want them to show as available shipping options.
I ran into the issue of my flat rate charge being higher than USPS Priority on some items, so I adjusted the USPS rate by adding a few bucks for "handling" on priority only. After all, the idea behind flat rate shipping is to encourage customers to buy more stuff.
Thanks again for your help!
Andrew
You are most welcome ... thanks for the update that this is working for you with both products_id and master_categories_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: v1.5.5]
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!
Hi, me again.
I want to turn on Freeoptions for orders that total $100 or more. The issue is that I need to exclude certain items just like I did for the Flat Rate shipping module. I tried modifying the freeoptions file under the /includes/modules/shipping, but it was a fail.
Please help.
Thanks!
Andrew
Disregard, I found this in another post:
" // disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
}
// BOF: Not allow products to qualify for Free Shipping
// set not allowed products_id numbers and master_categories_id numbers
if (!IS_ADMIN_FLAG) {
global $cart;
$chk_cat = 0;
$chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','01');
$chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','02');
if ($chk_cat > 0) {
$this->enabled = false;
}
}
Bookmarks