Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Text Link for "Tell a Friend"


Recommended Posts

Am I able to mod the "Tell a Friend" feature and have it displayed as a text link? Instead of the default input box/submit button combo, I want to have a text link, like "E-mail this product to a friend." For example, if I click on


<a href="">E-mail this product to a friend</a>


it'll go to the tell_a_friend.php page. Any ideas? I'm using L5 and this is my code:





 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_TELL_A_FRIEND


 new infoBoxHeading($info_box_contents, false, false);

 $hide = tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']);

 $hide .= tep_hide_session_id();

 $info_box_contents = array();

 $info_box_contents[] = array('form'  => '<form name="tell_a_friend" method="get" action="' . tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false) . '">',

                              'align' => 'left',

                              'text'  => '<div align="center">' . tep_draw_input_field('send_to', '', 'size="10"') . ' ' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . $hide . '</div><br>' . BOX_TELL_A_FRIEND_TEXT


 new infoBox($info_box_contents);




Link to comment
Share on other sites


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

  • Create New...