different template for selected price group

Discussion in 'Templates customization' started by eregp, May 24, 2007.

  1. eregp

    eregp New Member

    Joined:
    May 10, 2007
    Messages:
    8
    Hi all,

    I want to put different template for selected price group... I have put
    {if $smarty.request.price_group eq "1" or "2"}
    this text
    {elseif $smarty.request.price_group eq "3" or "4" or "5" or "6" or "7"}
    other text
    {/if}
    but it always go to the first one eventhough the price group id is not 1 or 2.. but it display the right product depends on the price group id...

    I have also tried
    {if $smarty.request.price_group eq "1" or "2"}
    this text
    {else}
    other text
    {/if}

    but it showed the same result as above

    could anyone can help me, please?


    thanks
  2. eregp

    eregp New Member

    Joined:
    May 10, 2007
    Messages:
    8
    found it

    nevermind guys.. I've found it how... here it is...
    {if $smarty.request.price_group eq "1" or $smarty.request.price_group eq "2"}
    this text
    {else}
    other text
    {/if}
    hope it would be useful for someone..
    thanks anyway
  3. mlunkin

    mlunkin New Member

    Joined:
    Apr 11, 2007
    Messages:
    2
    Hi All

    I am very new to PHP and the above selected price group code is exactly what I need, but I do not know witch file to place it in. I went to Admin signup_link_wizard.php, then Templates signup_html, Not sure.:confused:

    could anyone can help me, please?


    thanks
  4. draj

    draj New Member

    Joined:
    Dec 29, 2006
    Messages:
    252
    Blame Alex for not providing enough docs.

    Well, you will have to get the price groups detected somehow, for e.g. through the browser URL, etc.

    Once it is detected, then you can apply the above code in _ANY_ of the template generated by the amember scripts, I beleive, though not tested...

    For e.g. a user is signing for a price_group 8.

    For this price group, you can make amember generate some special text, html, etc. for that particular user during signup or after login show something special for that group...

    Get it?
  5. mlunkin

    mlunkin New Member

    Joined:
    Apr 11, 2007
    Messages:
    2
    Hi draj

    Thanks for the info. I'll give it a try.
    Thanks again.

Share This Page