+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to add the account ID to email template

  1. #1

    How to add the account ID to email template

    Hi all,

    I'd like to add the account ID to email template.
    Capture.PNG
    Could someone please help?
    Thank you so much!

    Regards,
    Dylan

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,250
    Hello,

    It will require additional modifications in php code

    it depends in what template you need to use your account id

    actually, you can write to your account from admin panel: Accounts > your account > click on 'Name' > 'Contact Dealer' button
    Last edited by Rudi; December 11, 2018 at 04:44 AM.

  3. #3
    Hi Rudi,

    Where I can go to modify PHP code for email templates in CPanel?
    I want to add Account ID to the emails once he signs up the account or signs in from Social plugin.
    Thanks for your help!

    Regards,
    Dylan

  4. #4
    That account ID is just number, it's not really the ID your want. May be you want username instead? Username is also unique and created by user or his/her email address.

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,250
    Use a new placeholder {account_id} in the following email templates: account_created_pending, account_created_active and account_created_incomplete

    then go to ftp > includes > classes > rlAccount.class.php > sendRegistrationNotification

    find a code:
    PHP Code:
    Only registered members can view the code
    and change it to:
    PHP Code:
    Only registered members can view the code
    and also change:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code

  6. #6
    Hi Hong,

    Thanks for your help! I want to use username, too. But it does not work, it just shows {username} in my email instead of the actual username. Did I miss something?

  7. #7
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,250
    you should use {name} placeholder actually

  8. #8
    Hi Rudi,

    Thanks for your help! I'll change code and check it out.
    I also have the issue using the variable {username} in email template, it does not work.

  9. #9
    Rudi,

    Thanks for your quick response! I'll try again.

  10. #10
    Hi Rudi,

    Placeholder {name} shows but it isn't unique.
    I'll use either {login} or {account_id} for my site since they're unique.
    I have one more question.
    I've installed the Reference Number Plugin and I would like to add the REF. number into the email template once user posts an Ad.
    Can you help me this?

    Thanks,
    Dylan

+ Reply to Thread