Create database entries upon checking out

Discussion in 'Integration' started by egeier, Mar 31, 2009.

  1. egeier

    egeier New Member

    Joined:
    Mar 31, 2009
    Messages:
    13
    Hi, I was wondering if i could customize amember to perform Insert statements to a mySQL database after a customer sucessfully checks out.

    Also, if I could pass product info variables. For example, I could apply hidden attributes to products...so if customer orders subscription with a hidden attribute number 5...i could have the custom code perform 5 Insert statements.

    This would let me better intergrate the checkout with my own online application.

    Thanks for the help,
    Eric
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Yes this can be done via PlugIn.. take a look at one of your other "Protect" plugins to get an idea of how the hooks work.
  3. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hey egeier,

    As skippy mentioned, you can do it via a plugin for aMember.

    Cheers!
    Lee
  4. egeier

    egeier New Member

    Joined:
    Mar 31, 2009
    Messages:
    13
    Thanks for replying.

    I looked through the Protect Plugins, but I don't understand which one will do what I want. Do i make my own plugin somehow?
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    hi egeier, sorry for any confusion. Yes since your database inserts are custom to your setup you would need to create a custom plugin to do this.

    In aMember\plugins\protect there is a plugin_template folder that you can copy to create your own plugin. The code is pretty well commented on where you insert your custom code.

    If you are not a developer yourself, there are a number of devs here in the forums that could assist or you can reach out to aMember support for assistance.
  6. egeier

    egeier New Member

    Joined:
    Mar 31, 2009
    Messages:
    13
    Thanks for the info, will look into this. I just downloaded Zend Studio, i think that's what i need to read/edit the code.
  7. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    You will need the Pro version of aMember which includes the unecrypted versions of all of the files. No special editor is needed to open them (just text files)

Share This Page