Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2008
    Location
    UK
    Posts
    44
    Plugin Contributions
    0

    help question Tell a Friend Button

    Hello,

    I'd really like to display 'Tell a Friend' just as a button, rather than the whole box etc. The code I'm using is
    PHP Code:
        <!--bof Tell a Friend button -->
        <?php
            
          
    echo '<a href="' zen_href_link(FILENAME_TELL_A_FRIENDzen_get_all_get_params(array('action''products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=tell_a_friend') . '" style="float:left;">' zen_image_submit(BUTTON_IMAGE_TELL_A_FRIEND BUTTON_TELL_A_FRIEND_ALT) . '</a>'."\n"
        
    ?>
        <!--eof Tell a Friend button -->
    It all displays fine, and works perfectly in Firefox and Safari on my mac, BUT, in IE6, clicking the button adds the product to the shopping cart instead. I can't understand the discrepancy, as surely it is server side code?!?

    I actually had the same problem with the wish list module, although that also did it in Safari.

    Any insights?

  2. #2
    Join Date
    Feb 2008
    Location
    UK
    Posts
    44
    Plugin Contributions
    0

    Default Re: Tell a Friend Button

    Doh! This is because my button is in the product_info_display.php page and part of a form whose job it is to add stuff to the cart. Is there either different code I could paste in there, or code I could add to whatever file handles that form, so it can also handle tell a friend? I just don't want it to be in a side box.

  3. #3
    Join Date
    Feb 2008
    Location
    UK
    Posts
    44
    Plugin Contributions
    0

    Idea or Suggestion Re: Tell a Friend Button

    Sorted - silly, silly - I put the button in as part of the form using zen_image_submit, instead of just as a link using zen_image_button.

  4. #4
    Join Date
    Jul 2005
    Posts
    79
    Plugin Contributions
    0

    Default Re: Tell a Friend Button

    is it possible to permit people to use the "tell a friend" link without having to create an account or log into their account?

  5. #5
    Join Date
    Feb 2008
    Location
    UK
    Posts
    44
    Plugin Contributions
    0

    Default Re: Tell a Friend Button

    Quote Originally Posted by tarynhipp View Post
    is it possible to permit people to use the "tell a friend" link without having to create an account or log into their account?
    Yes it is:

    'configuration' > 'email options' > 'allow guest to tell a friend'

    It is set to false by default for SPAM prevention.

  6. #6
    Join Date
    Jul 2005
    Posts
    79
    Plugin Contributions
    0

    Default Re: Tell a Friend Button

    that's great! thank you so much.

 

 

Similar Threads

  1. How do I get back the tell a friend button image?
    By bubblegumgoods in forum General Questions
    Replies: 5
    Last Post: 1 Nov 2007, 07:41 AM
  2. Tell A Friend Back Button
    By Ryk in forum Bug Reports
    Replies: 6
    Last Post: 28 Feb 2007, 01:32 AM
  3. Align Tell a friend button
    By covone in forum Basic Configuration
    Replies: 1
    Last Post: 16 Nov 2006, 07:42 PM

Bookmarks

Posting Permissions

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