how to add customer based credentials as protected content

Discussion in 'Integration' started by atom64, Nov 6, 2019.

  1. atom64

    atom64 New Member

    Joined:
    Apr 12, 2019
    Messages:
    6
    hi

    i need to give each customer unique credentials of my software as protected content. I know how to create Protected Content but its just static content for every customer who bought the product...
  2. caesar

    caesar aMember Pro Developer Staff Member

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

    How do you issue these credentials?

    You can add additional SQL fields to user table (eg.: my_login and my_pass)
    aMember CP -> Configuration -> Add User Fields

    populate these fields somehow.

    Then use Widget plugin (free):
    https://www.amember.com/amember/product/widget

    This plugin allow you to create Widget to user dashboard based on his active products.
    Within widget content you can use placeholders %user.my_login% and %user.my_pass%
    These placeholders will be replaced with actual values for logged in user.

    You can add new widget (after plugin installation) at:
    aMember CP -> Protect Content -> Widgets

    You can install Widget plugin from your aMember installation:
    aMember Cp -> Configuration -> Add-ons -> (Addons Directory)

    addons.png

    Best Regards
  3. atom64

    atom64 New Member

    Joined:
    Apr 12, 2019
    Messages:
    6
    well thanks but you say "populate these fields somehow." the big question is how ??
    why is there no easy way to manage credentials / serials for a product for each client ?
    i cant be the only one selling software with amember ????
    i feel like i try to reinvent the wheel
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
  5. atom64

    atom64 New Member

    Joined:
    Apr 12, 2019
    Messages:
    6
    ah ok that comes close but in my case i have a login url, username and password which i need to define manually for every product which a client buy
  6. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Do you mean all users should see same url, login, password?
  7. atom64

    atom64 New Member

    Joined:
    Apr 12, 2019
    Messages:
    6
    no no one customer can order 3 products and each product comes with credentials for the very specific customer
  8. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Where do you get credentials for specific user?
    - do you have some algorithm to generate it based on user id
    - do you use some web server to get these credentials for new user
    - do you have list of pre generated credentials and you allocate one from this list for new user
    etc.
  9. atom64

    atom64 New Member

    Joined:
    Apr 12, 2019
    Messages:
    6
    ok i will try to be more specific

    i have a product which comes with an external panel and credentials. A client can purchase multiple products and thus having multiple panel urls and credentials.

    Nothing is automated. My tech team have to generate that credentials manually after each purchase and somehow make this data visible in customers dashboard within the correct product subscription for this specific customer
    Last edited: Nov 7, 2019
  10. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    In this case my suggest from first answer should do the trick.

    You can add additional user field (textarea) - prodyctA_credentials
    then add widget that will be show only to user with productA
    and include placeholder:

    %user.prodyctA_credentials|default:awaiting setup%

    So right after purchase user see widget with text "awaiting setup"

    Then your admin setup service and put credentials to this field to user profile from admin interface:
    aMember CP -> Users -> Browse Users -> (edit)

    You can even setup Product Welcome Email and send it to Admin when product purchased so he setup service.
    aMember Cp -> Protect Content -> E-Mail Messages -> (New Product Welcome Email)

    This way you can add field and widget for each your product. It should works as I can see.

Share This Page