This is a discussion on Tell a Friend Box?? within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; why is there a text input? It doesn't do anything, when you click the mail icon you still have to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| why is there a text input? It doesn't do anything, when you click the mail icon you still have to enter the friends email address again? How can I get that outta there? |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| I finally got it to work! I also added a little more to it if anyone is interested. First off I fixed the problem of the text input box not working. You can either have it carry forward the name of your friend or the friends email address. I have mine carrying the email address to the next page: In catalog/includes/boxes find this: Code: text' => tep_draw_input_field('send_to', '', 'size="10"') . '&nbsp;' . 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);
You could also change it to 'to_name' I found this in the wiki docs, whenever someone uses the tell a friend, it sends you a copy. In catalog/tell_a_friend.php find: around line 80 Code: tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); ?> Code: //Mail a (silent) report to the web owner:
//get ip
if (getenv('HTTP_X_FORWARDED_FOR')) { $ip=getenv('HTTP_X_FORWARDED_FOR'); } else { $ip=getenv('REMOTE_ADDR'); }
//build report
$report = 'Here are the details of the T.A.F. submission by ' . $from_name . ' on ' . date("D M j G:i:s Y") . ':'; $report .= "\n\n" . 'Recipient details: ' . $HTTP_POST_VARS['to_name'] . ' - ' . $HTTP_POST_VARS['to_email_address']; $report .= "\n" . 'Sender details: ' . $from_name . ' - ' . $from_email_address; $report .= "\n" . 'Sender ip address: ' . $ip; $report .= "\n" . 'Personal message: ' . "\n\n" . $HTTP_POST_VARS['message']; $report .= "\n\n" . 'Product link: ' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?products_id=' . $HTTP_GET_VARS['products_id'];
// mail report
tep_mail('Tell A Friend', 'you@youraddress.com', '[ REPORT ] Tell a Friend Usage', stripslashes($report), '', $from_email_address);
Change you@youraddress.com to your email address. Note that if you use MIME e-mail you should change all occurances of "\n" to "<br>" |
|
#3
| |||
| |||
| Kristine ~ I seem to be having one of those days, (again;~) I implemented your addition to the TAF script and it works fine on the recipient side, but I'm having a heck of a time getting it to send me a report. I've tried several valid emails, (yes, including my admin email Did you have any issues like this? If so, any hints as to the resolution? Dave (BTW, thanks for all your "other" input. You ask the right ?'s) |
|
#4
| |||
| |||
| Oops - My log-in had timed out. Dave |
|
#5
| |||
| |||
| I'm sorry I didn't notice this reply till now. I didn't have any problems, it sent me the report right from the start. I'm not sure what your problem might be. Quote:
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot tell a friend about articles | jbanda | osCMax v2 Features Discussion | 0 | 08-17-2006 05:59 AM |
| Tell a Friend feature | countingsheep | osCMax v2 Customization/Mods | 0 | 08-12-2006 10:16 AM |
| HTML email a friend | adrenalinez | osCommerce 2.2 Modification Help | 0 | 09-03-2003 11:54 AM |
| Wierd return from 'Tip a friend' and more... | Petter | osCommerce 2.2 Installation Help | 0 | 02-16-2003 04:58 AM |
| Email loaded shopping cart to a friend/client | Anonymous | osCommerce 2.2 Modification Help | 2 | 11-25-2002 11:12 AM |