CC Posted December 27, 2002 Posted December 27, 2002 Hi Guys n Gals. Just another quick question. I have moved the Tell a Friend box from the right column into my main page in products info. Problem is, when you try to send a Tell a Friend mail, it adds a product to the cart instead! The command seems straight enough, but for some reason the add to cart function works when I am really trying to click send to a friend. Does anybody know the cure for this? Has it happened to others when you have moved it to the middle and out of a column? Advice please if you know why? BTW - I have added the qty box to the product info page too, so the input may be getting confused somewhere... Cheers CC.
psychedelik Posted December 27, 2002 Posted December 27, 2002 try moving your "tell a friend" input box outside of the <form name="cart_quantity" method="post" ......></form> tag the tell a friend box is itself a form as well, and by placing it inside another form causes the program to submit data of both forms.
CC Posted December 27, 2002 Author Posted December 27, 2002 Cheers mate. I thought I had checked that already. My mistake. Soz. CC.
CC Posted December 27, 2002 Author Posted December 27, 2002 psych You know when you did yours, how did you remove the box styling from the box itself. I know it is created in the array for the boxes styling, but seeing as I have moved the box out of the columns now, I dont want the same style, but I think I am making a big job out of changing the $info_box_contents part of the array. I'm sure there is a simple way to change this. Cheers CC.
Guest Posted December 27, 2002 Posted December 27, 2002 I added a table to infobox array and assigned a css to it...something like this: <TABLE cellSpacing=0 cellPadding=0 border=0> <TR> <TD class=someclass align=right> <form name="tell_a_friend" method="get" action="' . tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false) . '">' . tep_draw_input_field('send_to', '', 'size="10"') . ' ' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $new_products['products_id']) . '</div><br>' . BOX_TELL_A_FRIEND_TEXT . '</form></div></div></TD> <TR> <Table> Maybe this will help Tomzzzy
psychedelik Posted December 29, 2002 Posted December 29, 2002 You know when you did yours, how did you remove the box styling from the box itself. oops sorry for the late response, looks like Tomzzzy has already answered your question, but if you want the exact mod i did, here it is: <?php echo '<table width="300" cellspacing="0" cellpadding="0"><form name="tell_a_friend" method="get" action="' . tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false) . '"><tr><td colspan="2" class="main">' . BOX_TELL_A_FRIEND_TEXT . '</td></tr><tr><td width="100">' .tep_draw_input_field('send_to', 'recipient@e-mail', 'size="20"') . '</td><td width="200" align="left">' . ' ' . 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() . '</form><br></td></tr></table>' ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.