mail_payment.txt file mods

Discussion in 'Customization & add-ons' started by caucus, Mar 22, 2006.

  1. caucus

    caucus Member

    Joined:
    Jan 19, 2006
    Messages:
    45
    Hello Group

    I am going to make an attempt to add some more fields to the E-mail from aMember when a user signs up. The mail I receive I would like to know more about the user without having to login to the admin section. Basically I would like more details then shown below:

    Subject: *** New Payment

    New payment completed:
    Product: {$product.title}
    Amount: {$config.currency|default:"$"}{$payment.amount}
    Period: {$payment.begin_date|date_format:$config.date_format} - {$payment.expire_date|date_format:$config.date_format}

    User details:
    Username: {$user.login}
    Email: {$user.email}
    Name: {$user.name_f} {$user.name_l}

    --
    Your aMember Pro script
    {$config.root_url}/admin/



    I have my sign up form at:
    https://www.fummwa.org/membership/signup.php

    It would be nice if I could get all those fields in the e-mail. However, how do I know what the name of the field is. As you can see I added some and I know the names of the fields I created. How do I go about finding the rest of the fields. I think this is a good Idea. Now to go on a hunting trip. The check boxes may be a bit much to ask for but you never know. Somethings I did figure out! :D :D :D
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Well, it is from amember.sql

    member_id int(11) NOT NULL auto_increment,
    login varchar(32) NOT NULL,
    pass varchar(32) default NULL,
    email varchar(64) default NULL,
    name_f varchar(32) NOT NULL default '',
    name_l varchar(32) NOT NULL default '',
    street varchar(255) default NULL,
    city varchar(255) default NULL,
    state varchar(255) default NULL,
    zip varchar(255) default NULL,
    country varchar(255) default NULL,
    is_male smallint(6) default NULL,
    added datetime NOT NULL default '0000-00-00 00:00:00',

    left column is field names which you can use with $user.
  3. caucus

    caucus Member

    Joined:
    Jan 19, 2006
    Messages:
    45
    Hello Great One

    Does that mean any field in the members table I can use?

    Can I use any field that is in the DB or just from the members table?

    I do thank you for all the help, you do go the extra for your clients.
  4. caucus

    caucus Member

    Joined:
    Jan 19, 2006
    Messages:
    45
    Hello Great One


    I just need a bit more help. It appears the fields in the members area do not all use the {$user.country}

    What do I have to use to get my added fields info in the e-mail?

    This is what I have and all that came up was church. I am not using the amember name and address fields.

    Subject: *** New Payment

    New payment completed:
    Product: {$product.title}
    Amount: {$config.currency|default:"$"}{$payment.amount}
    Period: {$payment.begin_date|date_format:$config.date_format} - {$payment.expire_date|date_format:$config.date_format}

    User details:
    Username: {$user.login}
    Email: {$user.email}
    Name: {$user.name_f} {$user.name_l}
    Church: {$user.church}
    Address: {$user.street}
    City: {$user.city}
    State: {$user.state}
    Zip Code: {$user.zip}
    Country: {$user.country}



    --
    Your FUMMWA.ORG Membership
    {$config.root_url}/admin/
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Caucus,
    just write what you want to get in email and I will suggest.

Share This Page