Unique Thank you pages

Discussion in 'Customization & add-ons' started by sknollii, Jan 23, 2009.

  1. sknollii

    sknollii New Member

    Joined:
    Nov 8, 2006
    Messages:
    10
    I have multiple membership levels in one install.

    The first level does not even access a protected area but rather is taken to a thank you page I specified in the "protected directory" area in setup.

    The second level gets access to a protected directory.

    I need to take each one to a form (unique to that level) after they pay rather than to the login area. How can this be done?

    We have tried making the following change to "thanks.html"

    {assign var="title" value=$smarty.const._TPL_THX_TITLE}
    <p>{foreach from=$products item=p}
    {if $p.product_id eq "1"}
    /student-member-enrollment-form.htm
    {elseif $p.product_id eq "4"}
    /student-member-enrollment-form.htm
    {else}
    /discovery-member-enrollment-form.htm
    {/if}
    {/foreach}</p>
    <p>{if $config.google_analytics}
    {include file="google_analytics.js" sale="1"}
    {/if}

    {include file="footer.html"}</p>

    That simply delivers them to a page with nothing more than /student-member-enrollment-form.htm, a solid line and the CGI copyright.

    Any thoughts?

    Many thanks,

    Sam
  2. dereck_j2

    dereck_j2 Member

    Joined:
    Aug 22, 2006
    Messages:
    42
    Hi,

    The site I run wanted to do the same thing, so this is what we came up with.

    Using the thanks.php script we inserted the following: it may help you.

    switch($p.product_id )
    {
    case "1":
    $t->display("thanks_1.html");
    break;
    case "2":
    $t->display("thanks_baa.html");
    break;
    case "3":
    $t->display("thanks_2.html");
    break;
    case "4":
    $t->display("thanks_3.html");
    break;
    case "5":
    $t->display("thanks_4.html");
    break;
    case "6":
    $t->display("thanks_5.html");
    break;
    default:
    $t->display("thanks.html");
    }

    Best reagrds

    Dereck

Share This Page