Controlling thank you pages & sign up process

Discussion in 'Customization & add-ons' started by spacehogs, Apr 25, 2008.

  1. spacehogs

    spacehogs New Member

    Joined:
    Aug 22, 2006
    Messages:
    23
    I'd like to give my members related special upgrade offers and deals according to which product they purchased.

    The easiest way for me to do this is to simply edit the thank you page, however, that presents a problem since I have multiple products and multiple special offers and they need to be coordinated.

    Basically, if the customer signs up for product #1 i then want them to come to a thank you page and see an offer to upgrade to product #2.

    If they also take product #2 I then want them to see an offer for a physical product that they can order.

    Since there are two separate special offers that will be shown according to which amember product they purchased it becomes problematic and disallows me to simply edit my thank you page.

    Does anyone have any suggestions on how I can slightly alter my sign up process so that I can present the appropriate offers to the appropriate customers depending strictly on WHICH amember product they purchased?

    NOTE: This is super important and even somewhat urgent. If anyone can give me the critical answers I need I'd even be willing to PayPal you a few bucks for a solution that actually works!
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    I havent been able to get this to work on the signup process but you can do it in the thank you page. You'll need to edit the thanks.php to display a specific page depending on which product is purchased. $t->display("thanks.html");

    David
  3. spacehogs

    spacehogs New Member

    Joined:
    Aug 22, 2006
    Messages:
    23
    This seems like an idea that could work for me I'll just need a little extra shove in the right direction if you wouldn't mind...

    I would do this by editing thanks.html right?

    Let's say I have 2 products in amember... and depending which product is successfully purchased, I'd like to then direct them towards a related follow-up offer...

    I can easily do this by showing a link on the thank you page that says "Click Here To Continue" and control the <a href> direction of the link using your method I'll just need a little extra support on how to do that...

    I know just enough to be dangerous... lol.

    So say they purchase product1 and I want to then show them "upgrade1.php" when they click the "Click Here To Continue" link...

    and vice versa, if they purchase product2 I'll then want to show them "upgrade2.php" when they click the "Click Here To Continue" link
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Here you go:

    {foreach from=$products item=p}
    {if $p.product_id eq "1"}
    link
    {else}
    next link
    {/if}
    {/foreach}

    David
  5. newbyiiir

    newbyiiir New Member

    Joined:
    Sep 21, 2006
    Messages:
    4
    What's the syntax?
    I tried as above, but got this error code:
    "Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/xxxxxx/public_html/amember/thanks.php on line 95"

    This is how I set it up:

    {foreach from=$products item=p}
    {if $p.product_id eq "1"}
    $t->display("thanks.html");
    {else}
    $t->display("thanks2.html");
    {/if}
    {/foreach}
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    {foreach from=$products item=p}
    {if $p.product_id eq "1"}
    link (replace with your html)
    {else}
    next link
    {/if}
    {/foreach}

    Would go in thanks.html, its smarty code. You dont need the $t->display("thanks.html"); for this method, just replace link, or next link with your html code.

Share This Page