This mod shall show in the shopping cart how much more you need to order until shipping is free, here if the purchases is higher then ? 200.00 you will get free shipping. It shall be possible to change the amount if you change the value 200 to whatever you want.
Insert into catalog/includes/languages/english.php
// start cart text mod definition
define('CART_TEXT1', 'you need ');
define('CART_TEXT2', ' more, and shipping is free');
define('CART_TEXT2', 'Shipping is free');
// end cart text mod definition
Insert into catalog/includes/boxes/shopping_cart.php
//start cart text mod
$info_box_contents[] = array('align' => 'left',
'text' => tep_draw_separator()
);
if ($cart->show_total()< 200) {
$info_box_contents[] = array('align' => 'left',
'text' => CART_TEXT1 . ' ' . $currencies->format(200-($cart->show_total()));
'text' => CART_TEXT2 . '
);
} else {
$info_box_contents[] = array('align' => 'left',
'text' => CART_TEXT3 . '
);
}
//end cart text mod
Does anyone has an idea what I did wrong? I get the message:
Parse error: parse error, expecting `')'' in c:apachehtdocscatalogincludesboxesshopping_cart.php on line 80
I got it working, when its hardcoded into shopping_cart.php but then I only have one language. You can see it at
http://www.moddingstore.de/default.php?language=de
Thanks for looking on it
rainbow007