1 last clarification: some of those product IDs that I'm using are actually category IDs. Can I just do this:
$chk_cart += $_SESSION['cart']->in_cart_check('categories_id','96');
Thanks,
Andrew
Printable View
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');
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 ... :smile:
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;
}
}