Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing tell a friend infobox?


Assailant

Recommended Posts

Hmm searched the forums, and I know about commenting out boxes, but when i comment tell a friend

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

 

as so...it gives me a parse error, I dont wanna install the column manager admin because my hosting isnt setup for phpmyadmin so ide have to install that, so does anyone know of an easier way? thanks all the other commented out boxes arent listed so the rest work only this is giving me a prob, maybe because I have the login mod box installed?

Link to comment
Share on other sites

Tell a friend is in catalog/includes/column_right.php this is 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 {
  include(DIR_WS_BOXES . 'specials.php');
}

comment out to give 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 {
  include(DIR_WS_BOXES . 'specials.php');
} */

or if you wish to keep the specials box

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

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...