Is there a way to make "payment system" not show on free offers?

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

  1. spacehogs

    spacehogs New Member

    Joined:
    Aug 22, 2006
    Messages:
    23
    My new site is going to have a free level of access AND paid levels of access.

    Is there a way to make the "payment system" fields NOT show on the signup.php page for the free offers, but then show on the paid offers?

    How can I edit this or cause the payment system info to not show on my free signup.php offer page?

    Thanks,

    Chris
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Thats gonna require some editing of the signup.html form.

    Try this:
    Before the table section that displays the payment sytem:
    {* Select Payment System in same way, only if its count > 1 *}
    to
    {if $p.price > 0 }
    and after
    {/if}
    {/if}
    add
    {/if}

    David
  3. spacehogs

    spacehogs New Member

    Joined:
    Aug 22, 2006
    Messages:
    23
    This seems to work! Thanks for your help David.

    I also lived in Japan for a few years while in the military. Nihonjin ga totemo yasashii hito tachi desu ne??? lol.

    Thanks again, I appreciate the push in the right direction.
  4. theluckyy1

    theluckyy1 New Member

    Joined:
    Jun 12, 2008
    Messages:
    8
    This did not seem to work for me.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Did you get an error or what did not work?

    Where and how did you implement the code?
  6. rfranta

    rfranta Member

    Joined:
    Apr 24, 2008
    Messages:
    41
    Worked great for me.. Thanks

    Anyway to get rid of teh coupon code on free memberships?
  7. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Are you offering both paid and free on the same page? or using product_group=?
    If its just free, you can edit the amember/templates/signup.html and remove the section that asks for coupons.

    David
  8. jtoelle

    jtoelle New Member

    Joined:
    May 1, 2008
    Messages:
    17
    It worked for me, and maybe it needs to be explained to the "non technical" people like myself. I will admit it took me a minute to understand the instructions..

    #1: Find this line
    {* Select Payment System in same way, only if its count > 1 *}

    #2: Replace that exact line with
    {if $p.price > 0 }

    #3: Scroll down and find these:
    {/if}
    {/if}

    #4: Add another
    {/if}

    #5: So you'll have 3:
    {/if}
    {/if}
    {/if}

    Hope it helps, just a different way of explaining what David already said :)

Share This Page