Hide Payment Fields On Signup.htm

Discussion in 'Templates customization' started by joemungus, Sep 23, 2003.

  1. joemungus

    joemungus Guest

    Our amember setup only has one membership group which is free, can anyone tell me how to move the PAYMENT SYSTEM row from the table on signup.htm

    Thanks in advance

    :D
  2. alex-adm

    alex-adm Guest

    Remove these rows from signup.html template and insert hidden fields instead
    <input type=paysys_id value=free>
    <input type=product_id value=1>
  3. joemungus

    joemungus Guest

    :p
    Thanks alex
  4. Tassell

    Tassell Guest

    <input type="hidden" name="paysys_id" value="free">
    <input type="hidden" name="product_id" value="1">

    ...works better!

    Marc
  5. Rozey

    Rozey Guest

    How to Remove Payment Types for Free, and Include for Paid Products

    Alex,

    I offer more than one type of payment. (Authorize AIM and PayPal).

    How do I prevent these payment systems from showing up on a membership type that is FREE, while still making it available to other signups that aren't free?

    People are getting confused. They keep asking, if access to my site is free, why are the payment types being listed on the signup page for free membership?

    Most are saying, it prevents them from signing up!

    While I agree with them, I have to remember that I have other products (using the ?price_group=X) that I sell through the site memberships, and I can't use "hidden" values in the html code to prevent the payment types from being listed.

    How else can I make it so that the signup.html doesn't display a payment type, when the membership is FREE and others are not?

    Thanks in advance.

    Kindest Regards,
    Rozey
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    You can use price_group feature and display different blocks of HTML code for different price groups (and products). For example, you set your free product price group = -1 and refer to signup page as http://yoursite.com/amember/signup.php?price_group=-1

    then you can replace in signup template:

    PHP:
    <tr>
        <
    th><b>Select a Payment System</b></th>
        <
    td>
            {foreach 
    from=$paysystems item=p
            <
    input type=radio id="paysys_id{$p.paysys_id}name=paysys_id value="{$p.paysys_id|escape}"
                
    {if $p.paysys_id eq $smarty.request.paysys_id }checked{/if}
                ><
    label for="paysys_id{$p.paysys_id}"><b>{$p.title} - </b>
                <
    small>{$p.description}</small></label><br><br>
            {/foreach}
        </
    td>
    </
    tr>
    to

    PHP:
    {if $smarty.request.price_group eq "-1"}
    <
    input type=hidden name=paysys_id value=free>
    {else}
    <
    tr>
        <
    th><b>Select a Payment System</b></th>
        <
    td>
            {foreach 
    from=$paysystems item=p
            <
    input type=radio id="paysys_id{$p.paysys_id}name=paysys_id value="{$p.paysys_id|escape}"
                
    {if $p.paysys_id eq $smarty.request.paysys_id }checked{/if}
                ><
    label for="paysys_id{$p.paysys_id}"><b>{$p.title} - </b>
                <
    small>{$p.description}</small></label><br><br>
            {/foreach}
        </
    td>
    </
    tr>{/if}
  7. cell

    cell Guest

    Free Day PAss

    Alex,

    This question would be quite similar to the one above.But here it goes anyway.I have a 2 day pass and 1 week pass which I manually enter. I dont want this 2day pass and 1 week pass to appear in the member.htm page . how do I go about this process?

    Also, I am planning to create different signup pages for each individual products that we have what variables on what script would I have to tweak...I know this is all SQL statement stuff but its really better to hear from you first.

    Thanks in advance.
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I believe it is completely separate question. If you have any followup, please start a separate topic.
    Regarding your question: have a look to aMember CP -> Edit Products : "Product Scope" field, you can set it to "Signup only"
  9. lewis

    lewis Guest

    My signup.html is different

    I'm trying to dot he modification as well to one item that only has free signup enabled for it and I want to remove the paypal payment system but my code is diffrent . I'm running 2.84 cuurently.

    best,
    Lewis

    {* Select Payment System in same way, only if its count > 1 *}
    {if $config.product_paysystem}{else}
    {if count($paysystems)>1}
    <tr>
    <th><b>Select a Payment System</b></th>
    <td>
    {foreach from=$paysystems item=p}
    <input type=radio id="paysys_id{$p.paysys_id}" name=paysys_id value="{$p.paysys_id|escape}"
    {if $p.paysys_id eq $smarty.request.paysys_id }checked{/if}
    ><label for="paysys_id{$p.paysys_id}"><b>{$p.title} - </b>
    <small>{$p.description}</small></label><br><br>
    {/foreach}
    </td>
    </tr>
    {else}{* There is only one payment system enabled *}
    <tr>
    <th><b>Payment System</b></th>
    <td>
    {foreach from=$paysystems item=p}
    <b>{$p.title}</b> - {$p.description}<br>
    <input type=hidden name=paysys_id value="{$p.paysys_id|escape}">
    {/foreach}
    </td>
    </tr>
  10. metpac

    metpac Guest

    also hide ccbill 900 billing from sign-up.html on product group

    I am already using the PHP replacement code below from Alex's post in this thread (03-31-2004, 12:14 PM) to hide all payment fields on sign-up template for product group -1 (free)

    {if $smarty.request.price_group eq "-1"}
    <input type=hidden name=paysys_id value=free>
    {else}
    <tr>
    <th><b>Select a Payment System</b></th>
    <td>
    {foreach from=$paysystems item=p}
    <input type=radio id="paysys_id{$p.paysys_id}" name=paysys_id
    value="{$p.paysys_id|escape}"
    {if $p.paysys_id eq $smarty.request.paysys_id }checked{/if}
    ><label for="paysys_id{$p.paysys_id}"><b>{$p.title} - </b>
    <small>{$p.description}</small></label><br><br>
    {/foreach}
    </td>
    </tr>{/if}

    This removes all payment options from /signup.php?price_group=-1 THANKS!


    Can this be modified or is their another that will also remove/hide the ccbill 900 phone billing option just from /signup.php?price_group=-5 and leave the other payment options for group -5. MY only other option is to remove phone billing from everything because I can't have phone billing for price group -5

    I am new to PHP and aMemberPro and would appreciate any help!

    Great Program!
  11. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Try something like this:

    PHP:
    {if $smarty.request.price_group eq "-1"}
    <
    input type=hidden name=paysys_id value=free>
    {else}
    <
    tr>
    <
    th><b>Select a Payment System</b></th>
    <
    td>
    {foreach 
    from=$paysystems item=p}
    {if ( 
    $smarty.request.price_group eq "-5" ) and ( $p.paysys_id eq "ccbill_900") }
    {else}
    <
    input type=radio id="paysys_id{$p.paysys_id}name=paysys_id
    value
    ="{$p.paysys_id|escape}"
    {if $p.paysys_id eq $smarty.request.paysys_id }checked{/if}
    ><
    label for="paysys_id{$p.paysys_id}"><b>{$p.title} - </b>
    <
    small>{$p.description}</small></label><br><br>
    {/if}
    {/foreach}
    </
    td>
    </
    tr>{/if} 
  12. rickj

    rickj New Member

    Joined:
    Oct 29, 2005
    Messages:
    34
    Customizing what's shown in Select a Payment System

    I don't get the instructions...and am not even sure if I'm asking the same question:

    Here's my sign up page: http://www.tripswithkidz.com/amember/signup.php

    I want to remove the 1st and 3rd option, and change the wording of the 2nd one, but leave it's parameters the same (that is, go through Paypal for the processing - which I've already got successfully set up).

    How can I do this?

    Thanks!
  13. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Go to aMember CP -> Setup -> Plugins and disable "paypal_pro" plugin, it will remove 1 and 3 options.

    Then edit file amember/plugins/payment/paypal_r/paypal_r.inc.php,
    find strings "PayPal" and "secure credit card payment" and replace it to everything you want. Or better you can do this from aMember CP -> Setup -> Paypal.
  14. rickj

    rickj New Member

    Joined:
    Oct 29, 2005
    Messages:
    34
    Perfect. Thank you!
  15. tteg

    tteg Guest

    Hi Alex,

    I'm using version 3.06 of aMember, how do I modify the signup.html page to NOT show payment options when signups choose FREE products ONLY, and to show payment options when they purchase ONLY paying products or a combination of both?
  16. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  17. tteg

    tteg Guest

    Thank you Alex :) Works great!
  18. com1usa

    com1usa New Member

    Joined:
    Sep 28, 2006
    Messages:
    5
    question?

    I dont understand this.... I used signup_group 11 and it still shows the payment methods... I have been working for 3 hours on this and just cannot get it not to show payment methods for free sign ups... I have the latest verion of a member...please help!!!
  19. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please click on the link to see it in full (it is compressed by the board).
    There is a necessary parameter in URL - hide_paysys=free
    so url is
    signup.php?hide_paysys=free
    or
    signup.php?hide_paysys=free&price_group=11
    group number is not related with hiding payment system at all.
  20. queen

    queen New Member

    Joined:
    Dec 8, 2006
    Messages:
    7
    does the admin panel set the hiding of the payment system?

    Alex,

    I'm looking at my code in signup.html in the templates area
    and I see this code:

    {* Select Payment System in same way, only if its count > 1 *}
    {if $smarty.request.hide_paysys }
    <input type="hidden" name="paysys_id" value="{$smarty.request.hide_paysys|escape}">
    <input type="hidden" name="hide_paysys" value="{$smarty.request.hide_paysys|escape}">
    {else}
    {if $config.product_paysystem}
    <input type="hidden" name="paysys_id_not_required" value="for javascript" />
    {else}

    this implies that the admin control panel is where I go to hide the payment system.

    But I cannot find in the control panel where to do this.

    Can you tell me?

    thanks,
    Christina

Share This Page