WordPress.org

Forums

Easy Digital Downloads
[resolved] How to show customer's last name in an e-mail (10 posts)

  1. Holly
    Member
    Posted 2 years ago #

    Hello,

    I would like to know how I can include customer's last name in e-mails.
    Currently, {name} seems to only show their first name.

    Thank you!

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    It's not currently possible, not unless the user's display name is set to include their first and last name.

  3. Holly
    Member
    Posted 2 years ago #

    Hi Pippin,

    Thanks for your reply.
    If that's the case, I want to make a change and get rid of "Last Name" from "Personal Info" on Checkout screen and change "First Name" as just "Name", so that {name} can catch their full name.

    Can you let me know how I can do it?

  4. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    Are you comfortable with custom PHP?

  5. Holly
    Member
    Posted 2 years ago #

    I'm not so familiar with custom PHP. If I can follow step by step to make it happen I'm willing to try it, though.

  6. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    Sorry but this will require a lot of custom code and I'm not able to give simple step by step directions.

  7. Holly
    Member
    Posted 2 years ago #

    Okay then not in step by step, but can you let me know what basically I need to do?
    I myself am not familiar with PHP but I know some people who are familiar with PHP and I might be able to get their help for this.

  8. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    1. Combine the first and last name fields in includes/checkout-template.php

    2. Update the the payment processing function in includes/process-purchase.php to look for the single field instead of two

    3. Include an update in includes/process-purchase.php to separate the two names entered into the new single field so that they are stored separately since the plugin requires it

  9. Holly
    Member
    Posted 2 years ago #

    Hi Pippin,

    Just wanted to thank you for your recent update which included {fullname} e-mail shortcode. This was the simplest and the easiest solution for me and I'm very happy about it!

  10. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 2 years ago #

    Glad to help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Digital Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.