Customizing Thank you page

Discussion in 'Templates customization' started by bluenetworx, Mar 10, 2009.

  1. bluenetworx

    bluenetworx New Member

    Joined:
    Feb 6, 2009
    Messages:
    21
    Hi,

    I am not a programmer and got Amember installed for me, but I want to make a very small change to the thank you or confirmation page, which is the one that customers land on after completing a successful Paypal payment.

    What I want to do is place an Aweber sign up box in there so I can get the name and email before sending customers to the products.

    I can do some basic html changes in my c-panel....like copy and paste aweber code...lol...

    Is the page I need to alter- "thanks.php" ?

    Any advice

    Thanks
  2. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi blue,

    The page is thanks.html (in templates folder)

    Lee
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    amember/templates/thanks.html
    +
    amember/templates/receipt.inc.html
    if its a paid subscription.

    David
  4. fertilepress

    fertilepress Member

    Joined:
    Dec 6, 2008
    Messages:
    96
    I have a similar question.

    I'm a new aMember user just setting up my site. I would like to customize the following text in the thank you page:

    Thank you for Signing up
    Enjoy your membership. To Login please click here Login

    How do I do that?

    Thanks!

    renee
  5. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi renee,

    You can make this change in the thanks.html file in your "templates" folder in aMember.

    Cheers,
    Lee
  6. fertilepress

    fertilepress Member

    Joined:
    Dec 6, 2008
    Messages:
    96
    Hi Lee,

    Am I correct in assuming this is where I need to customize the thanks template? What do I replace this with?

    Code:
    {assign var="title" value=$smarty.const._TPL_THX_TITLE}
    
    {include file="header.html"}
    
    <strong>#_TPL_THX_ENJOY|<a href="{$config.root_url}/login.php">|</a>#</strong>
    Thanks so much for your help.

    renee
  7. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Fertilepress,

    The easiest (and most supported) way of doing this is via a custom language file.

    Most of the words and phrases that aMember displays are defined in language files (amember\language). The phrase "Thank you for Signing up", for example, is defined in the en.php language file as variable _TPL_THX_TITLE.

    While you can modify that file directly, it is better to create a custom lanuage file (in your case en-custom.php) in that same folder that overrides the words and phrases you care about. This will protect you from losing your changes when upgrading in the future.

    Example

    1) Create a file called en-custom.php in your amember\language directory that looks like this:

    Code:
    <?php
    defined( 'INCLUDED_AMEMBER_CONFIG' ) or die( 'Direct access is not allowed' );
    define ('_TPL_THX_TITLE', 'Thanks for signing up for FertilePress's membership site');
    ?>
    You can add additional phrases by copying and pasting from en.php into en-custom.php.
  8. fertilepress

    fertilepress Member

    Joined:
    Dec 6, 2008
    Messages:
    96
    Thank you so much! It works like a charm.

    renee

Share This Page