I use a subtotal based shipping.
if $sub_total <= 40.00 then $cost = 5.00;
if $sub_total >40.01 then $cost = 0.00; // FREE SHIPPING OVER £40
My problem: there is a single PRODUCTA(price: £30) which I want it to be FREE SHIPPING.
my subtotal based shipping is not working for this because this PRODUCTA is still under £40
then I set the Requires Shipping to NO for this PRODUCTA: it work when there is only this PRODUCTA in the cart BUT
let say we have this cart:
1x PRODUCTA £30
1x PRODUCTB £12
sutotal is £42 so it should be FREE SHIPPING but because Ive set no shipping requires for PRODUCTA it's like there is only PRODUCTB in the cart and we get charge for shipping!
IS there a way to fix this? or maybe detect the PRODUCTA id on the cart
and have something like:
Code: Select all
elseif ($this->cart->getproduct_id = 51) {
$cost = 0.00
}