Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I would like to make a contribution but something went wrong


rainbow007

Recommended Posts

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

Besser heute als morgen......

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...