Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move tell a friend onto the product page


goldie

Recommended Posts

You can simply copy the code from /includes/boxes/tell_a_friend.php to product_info.php - place it within html tags wherever you wish it to display, eg.

 

 

 ? ? ? ? ? ? ? ?<td>
<?php
?$info_box_contents = array();
?$info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);

?new infoBoxHeading($info_box_contents, false, false);

?$info_box_contents = array();
?$info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'align' => 'center',
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => tep_draw_input_field('to_email_address', '', 'size="10"') . ' ' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);

?new infoBox($info_box_contents);
?> ? ? ? ? ? ? ?</td> ?

 

Remove the following two lines to remove the heading:

 

  $info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);

 new infoBoxHeading($info_box_contents, false, false);

 

 

You may also wish to remove/comment the call to the box from includes/column_right.php.

 

Matti

Link to comment
Share on other sites

Hi Matti

Thank you very much for showing me how/where to modify the codes.

You really made it so simple and make things a breeze!!! :P

 

Best regards

Goldie

we are all virtual...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...