Hello everybody!
I have a little problem. I installed the contribution and it works wonderfully! BUT I have a little problem...
I've also installed the Freeamount-contribution and they don't work so well together. I get the following error when the Freeamount i activated:
Fatal error: Call to a member function on a non-object in /home/wt234/public_html/catalog/includes/modules/shipping/freeamount.php on line 64
The code in shipping/freeamount.php is the following at these line (55-80):
// class methods
function quote($method = '') {
global $order, $cart, $shipping_weight;
$dest_country = $order->delivery['country']['id'];
$currency = $order->info['currency'];
$get_total = false;
$get_weight = false;
$cart_total = $cart->show_total();
if (MODULE_SHIPPING_FREEAMOUNT_HIDE_SPECIALS == 'True') {
// 28-9-2005 Check for articles on special which should not get free shipment
// Adjust the cart total price for this
$total_specials = 0;
if ($cart->count_contents() > 0) {
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if ($special_price = tep_get_products_special_price($products[$i]['id'])) {
$products_price = $special_price;
$total_specials += $products_price;
}
}
}
$cart_total = $cart_total - $total_specials;
}
I'm a rookey to php so I really can't say what's missing...
Thanx!