Guest Posted January 5, 2007 Share Posted January 5, 2007 I was going through my site running some tests to ensure that all was working properly (it was a dark and stormy night but that doesnt matter) and found that my "Tell A Friend" feature was not working properly. The problem isnt with the tell_a_friend.php file though... its on the menu box button. You can add an email address but then after hitting the button (which should go to the "tell_a_friend.php" page) the next page that shows is the "shopping_cart.php" page. Now to me, this makes no sense and I have read through countless posts to find an answer and even attempted to fix the problem myself without success. Anyone have a suggestion? This is the code found in includes/boxes/tell_a_friend.php: <?php/* $Id: tell_a_friend.php,v 1.16 2003/06/10 18:26:33 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- tell_a_friend //--> <tr> <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> </tr> <!-- tell_a_friend_eof //--> Anyone care to take a stab? Thanks in advance for your replies, ~Roq Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2007 Share Posted January 5, 2007 Anyone? I would like to get this working soon. Please HELP! Thanks ~Roq Link to comment Share on other sites More sharing options...
Guest Posted January 10, 2007 Share Posted January 10, 2007 No one with thoughts, suggestions, or comments? Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2007 Share Posted January 12, 2007 Are there any moderators that can help with this? Surely I am not the only one to experience this error. Thanks ~Roq Link to comment Share on other sites More sharing options...
jonquil Posted January 12, 2007 Share Posted January 12, 2007 Sure, I'll bite. What the heck. It's clear & cold, not a storm in sight. How about a URL so I can take a peek, pls. jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2007 Share Posted January 15, 2007 Sure, I'll bite. What the heck. It's clear & cold, not a storm in sight. How about a URL so I can take a peek, pls. jon LOL I felt compelled to throw in a bit of story into my post. Considering the weather we have been having in BC lately, I couldnt help the reference to it! Thanks for the offer to take a boo! UPDATE: I just found out that the Send To Friend button works when a visitor has NOT logged in. But once that visitor HAS logged in, the same button adds the product to the visitor's cart instead of going to the tell_a_friend.php page. Any thoughts? Site = FromAphrodite.com Thanks again! ~Roq Link to comment Share on other sites More sharing options...
jonquil Posted January 15, 2007 Share Posted January 15, 2007 Please advise when providing a URL that the site deals with ADULT MATERIAL. Thanks in advance for helping me explain this to the 11-year old sitting beside me when your site came up... Anyway, when I clicked the tell-a-friend email icon on a product page, it was added to the cart. I was not logged in. I don't know why this is happening to you, except to say that the add to cart link is connected with the email icon. Have you tried replacing the root tell_a_friend.php with the stock version? You could also try setting from false to true on line 15 of that same file and see what happens. In includes/filenames.php, check line approx line 60: define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); Can't help you more than this, sorry :( jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.