Adding More Database Content to Admin Emails?

Discussion in 'Customization & add-ons' started by servoweb, Apr 1, 2004.

  1. servoweb

    servoweb Guest

    Hi guys,
    I need to edit the pending and pament complete emails and am wondering where to start. I know I can edit these two files:
    /amember/templates/admin/mail_payment.txt
    /amember/templates/admin/pending_mail.txt

    for text content but how would I go about adding database fields to the emails?

    Looks like I need to edit common.inc.php, but I'm not too sure where to start.

    My client wants to be emailed the full member details (full address and a custom field I've added called "cars") everytime someone signs up. Reason they want this is so they can print off each email separately and then enter each member record into an offline database.

    Any ideas? I'm using 2.1.7 aMember Pro
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Just insert to templates:

    {$u.street} {$u.city} {$u.state} {$u.country} {$u.zip}

    [$u.data.your_new_field} or may be {$u.your_new_field}
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Sorry, anywhere, instead of
    {$u.
    must be
    [$user.
  4. servoweb

    servoweb Guest

    thanks Alex, worked perfectly!

    How about adding the Order ID number that's generated by the merchant system? We're using Verisign PayFlow Link.

    Looks like it's inserted into the amember database as the field "receipt_id", but in a different table. Would I use {$user.reciept_id} ?

    Sorry, I could test this out myself but we're now live and just want to make sure.
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    try

    {$payment.receipt_id}
  6. servoweb

    servoweb Guest

    thanks Alex

    As always, that worked perfectly. :)

Share This Page