To do this, customize the shipping module:
/includes/modules/shipping/flat.php
with the code in RED:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
// bof: give Free Shipping if 1 or more Always Free Shipping is in cart
if (!IS_ADMIN_FLAG) {
$chk_cart = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
if ($chk_cart > 0) {
$this->enabled = false;
}
}
// eof: give Free Shipping if 1 or more Always Free Shipping is in cart
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {
and the module:
/includes/modules/shipping/freeshipper.php
Code:
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
}
// bof: give Free Shipping if 1 or more Always Free Shipping is in cart
if (!IS_ADMIN_FLAG) {
$chk_cart = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
if ($chk_cart > 0) {
$this->enabled = true;
}
}
// eof: give Free Shipping if 1 or more Always Free Shipping is in cart
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREESHIPPER_ZONE > 0) ) {
Bookmarks