goldie Posted April 2, 2005 Posted April 2, 2005 Any suggestion how to move the tell a friend feature in infobox in the column to the product page next to add to cart ? TIA Goldie we are all virtual...
Guest Posted April 2, 2005 Posted April 2, 2005 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
goldie Posted April 4, 2005 Author Posted April 4, 2005 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...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.