Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

erase code lines


fr4nkmtl

Recommended Posts

Posted

Hello,

 

I want to erase all this:

Notifications, tell a friend, quick find, reviews, and the message "This product was added to our catalog on..."

 

What do I do ?

Posted

Francis,

 

Are you looking to erase the language definitions or the boxes on the columns ?

 

 

 

Chris

Posted

Francis,

 

you will find the boxes in includes/column_left.php and includes/column_right.php

 

Just comment out the boxes you don't want to display.

 

ie include(DIR_WS_BOXES . 'best_sellers.php');

 

change to: // include(DIR_WS_BOXES . 'best_sellers.php');

 

 

Chris

Posted

Thanks, it works for everything exept for "tell a friend" because the code is different. If I add // before include, there's is an error message, if I delete the code there's an error message too.

 

Here's the code:

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

 

 

 

Francis,

 

you will find the boxes in includes/column_left.php and includes/column_right.php

 

Just comment out the boxes you don't want to display.

 

ie include(DIR_WS_BOXES . 'best_sellers.php');

 

change to: // include(DIR_WS_BOXES . 'best_sellers.php');

 

 

Chris

Posted

Francis,

 

 

Try this:

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND)// include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

 

 

 

Chris

Posted

That won't work. Comment out the entire statement:

if (isset($HTTP_GET_VARS['products_id'])) {
  // if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {

Posted

I tried this already like I said, it's not working, look what's the error message:

 

Parse error: syntax error, unexpected '}' in C:\EasyPHP-5.3.3\www\catalog\includes\column_right.php on line 37

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...