Link to custom form on "Add/renew Subscription" page based on User Group

Discussion in 'aMember Pro v.4' started by tomingles, Aug 21, 2013.

Thread Status:
Not open for further replies.
  1. tomingles

    tomingles Member

    Joined:
    Mar 27, 2013
    Messages:
    52
    We have two sets of customers coming from two separate public websites to our Amember website. These are:

    1. Spanish speakers
    2. English speakers

    These two user groups buy different versions of our products.

    We can send these different user groups to the respective custom forms that we have set up in Amember, so that Spanish speakers see the "Spanish signup form" with the Spanish version products, and English speakers the "English signup form" containing the English version products, from where we add them to a Spanish or English User Group using the hidden form field in our custom forms.

    This all works very well.

    However, we run into a problem when a customer who has already purchased something goes to their "Add/renew Subscription" button in their members area, which shows them the default sign-up form.

    At this point, the user has already been divided into "Spanish" or "English" User Groups, and the products are all divided into "Spanish" or "English" categories, but I cannot see any way to select a signup form on the "Add/renew Subscription" page (for logged in members) based on either their User Group, OR the category (Spanish/English) of a previously bought product.

    Therefore both sets of users are shown ALL the products, which gets very confusing for them.

    Is there a way to display a custom form on the "Add/renew Subscription" page for logged in members based on User Group?
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    I hope you can implement what you want the following way:
    1. create two product categories: spanish and english
    2. add your products to corresponding category
    3. edit your product and for product from category spanish set Disallow ordering of this product if user hasto
      • ACTIVE subscription for group "english"
      • EXPIRED subscription for group "english"
    4. edit your product and for product from category english set Disallow ordering of this product if user hasto
      • ACTIVE subscription for group "spanish"
      • EXPIRED subscription for group "spanish"
    5. edit your default signup form for member aMember CP -> Configuration -> Form Editor and click configure link on Product brick and set If product is not available because of require/disallow settings to Remove It From Signup Form and save brick and form.
    That is all. Your english users should see products only from english category and spanish user will see products only from spanish category on member signup form.

    Please let me know either it is suitable solution for you or not.
    tomingles likes this.
  3. tomingles

    tomingles Member

    Joined:
    Mar 27, 2013
    Messages:
    52
    Thanks for your help Caesar, that worked perfectly :).
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You are welcome!
Thread Status:
Not open for further replies.

Share This Page