Hi Ajeh,
Thanks for the pointer, I followed
Code:
$_SESSION['cart']->free_shipping_items()
"free_shipping_items()" is in /includes/classes/shoppingcart.php
Code:
function free_shipping_items() {
$this->calculate();
return $this->free_shipping_item;
}
So I tracked down calculate and found this piece of code inside
Code:
// shipping adjustments
if (($product->fields['product_is_always_free_shipping'] == 1) or ($product->fields['products_virtual'] == 1) or (ereg('^GIFT', addslashes($product->fields['products_model'])))) {
$this->free_shipping_item += $qty;
$this->free_shipping_price += zen_add_tax($products_price, $products_tax) * $qty;
$this->free_shipping_weight += ($qty * $products_weight);
}
I think this bit
"($product->fields['product_is_always_free_shipping'] == 1)"
needs to be changed to
"($product->fields['product_is_always_free_shipping'] == 1 AND (check it is in valid free shipping zone or the free shipping zone is 'none') )"
Does this qualify as a bug or is there another way to configure zencart to do this?
Thanks
Alan
Bookmarks