Best way to get product object from wordpress plugin?

Discussion in 'Integration' started by gcornelisse, Jun 21, 2012.

  1. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    I'm using amember 4 and I'm building a wordpress plugin that will provide content/services based on the configuration of the amember product.

    I can see how to get a fair amount of information about the user through the Am_Lite object. But, how do I get full details about individual products? I have custom fields in the amember products I need to access from my wordpress plugin.

    Thanks
  2. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    Bumping this...

    I'd like to be able to get custom product data without having to load the whole amember system if possible?
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    What exactly are you looking for when you say "full details"

    Have you explored what is available in the aMember XML-RPC?
  4. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    I've added a custom field to the product edit form (see code below). I'd just like to be able to access the information entered into those fields from my application, preferably through a product object if possible?

    Code:
    Am_Di::getInstance()->productTable->customFields()->add(
        new Am_CustomFieldText(
            'print_days',
            'Print days',
            'Comma separated list of days of the month on which reports should be printed. ex. 1,15'
        )
    );

Share This Page