I've tried implementing the code but no change in the way the shipping methods are displayed.
I changed your hack a little bit cause I was getting an "unexpected t_arrow error" and the 2nd if statement looked a bit off to me so it looks like this
// BOF kdm attribute price test
$attributes_price = 0;
if($check_flag == true) {
foreach($order->products as $k=>$v) {
$a_price = $cart->attributes_price($v['id']);
$attributes_price = $attributes_price + ($a_price * $v['qty']);
}
if($attributes_price > 4.99){ //<--CHANGED THIS
$check_flag = false;
}
}
// EOF kdm attribute price test
}
if ($check_flag == false){
$this->enabled = false;
}
}
}
I don't quite get this piece: foreach($order->products as $k=>$v) {
$a_price = $cart->attributes_price($v['id']);
$attributes_price = $attributes_price + ($a_price * $v['qty']);
}
What's happening there? 





Find content
Female

