Oba-san
- Join Date:
- Sep 2003
- Location:
- Ohio
- Posts:
- 62,757
- Plugin Contributions:
- 1
Free Delivery for Some Products
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
}
// bof: turn off for manufacturers_id 3
if (!IS_ADMIN_FLAG) {
$chk_man = $_SESSION['cart']->in_cart_check('manufacturers_id','3');
if ($chk_man > 0) {
$this->enabled = false;
}
}
// eof: turn off for manufacturers_id 3
If using UPS you need to customize the file:
/includes/modules/shipping/ups.php
in a similar manner:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
}
// bof: turn off for manufacturers_id 3
if (!IS_ADMIN_FLAG) {
$chk_man = $_SESSION['cart']->in_cart_check('manufacturers_id','3');
if ($chk_man > 0) {
$this->enabled = false;
}
}
// eof: turn off for manufacturers_id 3
Linda McGrath
If you have to think ... you haven't been zenned ...
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!