Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Location
    Boston, MA, USA
    Posts
    40
    Plugin Contributions
    0

    Default Moving Tell a Friend Success Message

    Is there code somewhere that determines where error and success messages get displayed on the page?

    After using the Tell a Friend form, the success message ("Your email about __ has been successfully sent to __") appears at the very top of the page, which is just kind of random. I'd like it to appear below my logo, above the prev/listing/next buttons of the product info page.

    I figured there must be code somewhere, because not all success messages display at the top. When I change my account password, it displays the message in the logical place. I took screen shots, since you might not be able to test these things out without an account:


    (Click the picture for the full size version)


    Here is the Tell a Friend message:



    How can I move that message? That is one of the last few things I want to change before going live.

  2. #2
    Join Date
    Jan 2007
    Location
    Boston, MA, USA
    Posts
    40
    Plugin Contributions
    0

    Default Re: Moving Tell a Friend Success Message

    Nevermind, I fixed it!

    I looked at includes/modules/pages/account_password/header_php.php and saw how the line with SUCCESS_PASSWORD_UPDATED was set up. I then compared that to the code in includes/modules/pages/tell_a_friend/header_php.php and saw that it was telling the message to appear in the header:

    Code:
    $messageStack->add_session('header', sprintf(TEXT_EMAIL_SUCCESSFUL_SENT, $product_info->fields['products_name'], zen_output_string_protected($to_name)), 'success');
    I replaced 'header' with 'product_info' and now the message appears below my logo, yay!

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Moving Tell a Friend Success Message

    Good detective work there!
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Sep 2006
    Posts
    91
    Plugin Contributions
    0

    Default Re: Moving Tell a Friend Success Message

    Hi

    I want to move the button of Email a friend to the right side. Anyone knows how to do it. Thanks

    http://www.yenmax.com/womens-100-sil...irt-p-149.html

    yenmax

 

 

Similar Threads

  1. css question - Moving the "Tell A Friend" button a bit
    By MeltDown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Oct 2009, 04:35 AM
  2. Align Write a Review to right and moving Tell A Friend buttons
    By hindley08 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2008, 11:31 AM
  3. Image with tell a friend message.
    By Thierry13 in forum General Questions
    Replies: 7
    Last Post: 11 Jan 2008, 04:54 PM
  4. Moving "Tell a friend" and adding another image
    By needs_a_nap in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Aug 2006, 06:26 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR