Jump to content


Corporate Sponsors


Latest News: (loading..)

JSR

Member Since 17 Feb 2008
Offline Last Active Jan 20 2012, 14:54
-----

Topics I've Started

calculate total price of product attributes in cart for shipping modukle

13 June 2011, 19:23

I've been looking for a way to exclude a shipping module based on the total price of all product attributes in the shopping cart.
If the total price of product attributes is higher than zero, only one shipping method should be available.
I have 2 flat rates and I've tried to exclude one by adding in includes/modules/shipping/flat.php:

if ($cart->calculate_price[$attribute_price]['total'] < 4.99){
$this->enabled = true;
}else{
$this->enabled = false;
}


This isn't working...
Does anyone know how to effectively go about this? :huh: