Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tell-a-friend box "ONLY" shown to users who are lo


GD

Recommended Posts

Hi all,

 

I would like to make the tell-a-friend box "ONLY" show to users who are logged in. I have tried several "configurations" of the osC column right code without success.

 

All I have been able to do, is to remove the whole right column of the page! I don't want that. :wink:

 

Please help, if you know the way. :D :D :D

 

Thanks!

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

You could place an IF statement around the tell a friend:

 

  if ($HTTP_GET_VARS['products_id']) {

   if (tep_session_is_registered('customer_id')) {

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

   }

 } else {

   include(DIR_WS_BOXES . 'specials.php');

 }

Link to comment
Share on other sites

Thanks Ajeh,

 

I'll give your solution a try. 8)

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

Thanks Ajeh,

 

Your solution worked like-a-charm. :D

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...