Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Modifying Tell a Friend

    I need help modifying the 'Tell a Friend' email page. I would like to remove the requirement to select a product, so that users can tell their friends about our site. We are going to implement a 'Refer a Friend' program and would also like to get cc:'d by such emails (not to the main store email, but an alternative such as 'referrals@ . . .'

    Any ideas . . .

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Modifying Tell a Friend

    If I was you, I would alter the "Tell A Friend" sidebox, so that it always appears. If it is on a product page, then show the Tell a Friend about the product, and if not, tell them about the store. This can be changed in includes/modules/sideboxes/tell_a_friend.php .

    Next you will need to change the sending email script, which is found in includes/modules/pages/tell_a_friend/header.php

    Here I would check if you have a product_id sent in, which is detected in line 19 of a zen 1.3. If not, by adding and else to line 34, then set the email up to send the Our Store email.

    As for cc-ing yourself in, you can send yourself a copy of the email, by re-running the send email line of code.

    Hope this gices you some ideas.

    Absolute

  3. #3
    Join Date
    Mar 2007
    Posts
    106
    Plugin Contributions
    0

    Default Re: Modifying Tell a Friend

    Quote Originally Posted by Absolute View Post
    If I was you, I would alter the "Tell A Friend" sidebox, so that it always appears. If it is on a product page, then show the Tell a Friend about the product, and if not, tell them about the store. This can be changed in includes/modules/sideboxes/tell_a_friend.php .

    ..............
    Following your tip I got now the Tell a Friend sidebox on the main page but it doesn't work, it only works when I am in the product page as usual.

    What I have to write in the tell_a_friend.php to make it works so a costumer can "tell a friend" ?

    Thank you.

  4. #4
    Join Date
    Mar 2007
    Posts
    106
    Plugin Contributions
    0

    Default Re: Modifying Tell a Friend

    Hello again
    is there someone that can post the code to add to the:

    includes/modules/pages/tell_a_friend/header.php

    in order to have TELL about the site in addiction to the Tell About this product or just Tell About the site ?

    thanks you

  5. #5
    Join Date
    Mar 2007
    Posts
    106
    Plugin Contributions
    0

    Default Re: Modifying Tell a Friend

    Hello, Really need help !!

    I altered the Tell_friend_php in order to have it in every page (10 days ago) then I changed my mind, tried to alter it again in order to have it only where it supposed to be. The problem now is that I forgot what I did (I very new to PHP), The box it is not in any page even if in the Layout Boxes Controller it is set to "ON". Here is the tell_a friend_php code just in case you are able that something is wrong:

    // test if box should display
    $show_tell_a_friend= false;
    if (isset($_GET['product_id']) and zen_products_id_valid($_GET['product_id'])) {
    if (!($_GET['main_page']==FILENAME_TELL_A_FRIEND)) $show_tell_a_friend = true;
    }
    if ($show_tell_a_friend == true) {
    require($template->get_template_dir('tpl_tell_a_friend.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_tell_a_friend.php');
    $title = BOX_HEADING_TELL_A_FRIEND;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    Thanks a lot

    Mario

 

 

Similar Threads

  1. Tell a Friend
    By ian in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Oct 2011, 08:32 PM
  2. tell a friend
    By trnghosh in forum General Questions
    Replies: 1
    Last Post: 12 Mar 2010, 02:27 PM
  3. Refer a friend page or Tell a friend about website, not product
    By dealbyethan.com in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2008, 11:58 AM
  4. Tell a Friend
    By gloerick in forum Basic Configuration
    Replies: 0
    Last Post: 1 Jan 2008, 09:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg