WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. skittlegirlholly
    Member
    Posted 1 year 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. It's not currently possible, not unless the user's display name is set to include their first and last name.

  3. skittlegirlholly
    Member
    Posted 1 year 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. Are you comfortable with custom PHP?

  5. skittlegirlholly
    Member
    Posted 1 year 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. Sorry but this will require a lot of custom code and I'm not able to give simple step by step directions.

  7. skittlegirlholly
    Member
    Posted 1 year 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. 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. skittlegirlholly
    Member
    Posted 1 year 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. Glad to help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.