hidden subscription purchase by an existing member

Discussion in 'Integration' started by menspsy, Oct 16, 2010.

  1. menspsy

    menspsy New Member

    Joined:
    Aug 4, 2010
    Messages:
    24
    I'm trying to figure out how to allow the existing members to signup for a product that is not listed (product that has a negative price group).

    Scenario: We sell a physical product through 1ShoppingCart and as a bonus we want after their purchase to give them a 3 free months of access to our phpbb forum (forum access is handled by Amember).

    On 1SC thank you page I can place a link to Amember product - http://www.mysite.com/amember/signup.php?price_group=-999&product_id=10

    This will work fine, the signup form is displayed and they can finish the registration and checkout...

    ...However, this works only if they don't have Amember account. If they already have Amember account, an error message appears saying:
    * Please choose a membership type
    * An account with the same email already exists.
    Please login to your existing account.
    If you have not completed payment, you will be able to complete it after login


    I'm really lost about what to do. This subscription we are giving them can't be displayed in a regular Amember product selection. It's a special deal available only after a physical product purchase (through 1ShoppingCart).


    Did anyone dealt with a similar problem?
  2. jprice

    jprice New Member

    Joined:
    Apr 3, 2007
    Messages:
    6
    I have a very similar issue. Have you come up with any solution yet?
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    for existing users you can use price_groups the same way as in signup.php:
    /amember/member.php?price_group=-1
  4. menspsy

    menspsy New Member

    Joined:
    Aug 4, 2010
    Messages:
    24
    Thanks for the reply. With your help I think I have finally figure it out.
    When I use
    Code:
    www.mysite.com/amember/member.php?price_group=-999&product_id=10
    no product shows up ...

    ... but if I use
    Code:
    www.mysite.com/amember/member.php?price_group=-999&product_id=10&tab=add_renew
    then the product is available.

    Without the &tab=add_renew command the subscription will not appear under the Add/Renew tab.


    So to solve my inital problem, I will have to offer 2 links to a customer on the thank you page - one with signup.php (new member) and one with member.php (existing member)?

    Is all the above the correct way of doing it?

    Thanks
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes this is correct.

Share This Page