• Resolved kosy33

    (@kosy33)


    Dear Pinal,

    I was wondering if there was any way to add user last-name to qwc_send_quote email subject using hook, or any customization?
    I tried to achieve it but without success.

    Thank you for your help.
    Regards
    Jean

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pinal.shah

    (@pinalshah)

    Hi Jean,

    I apologize for the delay in response.

    The safest way to do this is to customize the email template.

    Kindly follow the below steps:
    1. Go to WooCommerce > Settings > Emails
    2. Go to email that you wish to edit (It will be the Send Quote email here)
    3. Scroll down and click on the Copy file to theme button. This will create a php file in wp-content/themes/<your active theme>/quotes-for-wc/emails/.
    4. Edit the send-quote.php file to add the last name and any more details as needed.

    In your case, you can fetch the last name as:
    $billing_last_name = $order->get_billing_last_name();

    and the same can be used as:

    echo sprintf( esc_html__( 'Hello %1$s %2$s', 'quote-wc' ), esc_attr( $billing_first_name ), esc_attr( $billing_last_name ) );

    Regards,
    Pinal

    Thread Starter kosy33

    (@kosy33)

    Hi Pinal,
    Sorry for my very late answer, thank for you reply but my concern was about adding last-name to the SUBJECT of send-quote-email not in the body of the mail. This can be done in request-new-quot-email and not in the-send-quote-email,maybe my question was not clear enough, I apologize for that.
    Thank you for your time.
    Best regards
    Jean

    Plugin Author pinal.shah

    (@pinalshah)

    Please accept my apologies Jean. I did not read the topic subject line. You had quite clearly stated where you’d like to add the merge tag.

    Currently, it is not possible to edit the subject line to add a last name in the email subject. However, I’m adding this as a client request and will try to incorporate it in the upcoming HPOS compatibility update (which is due in November).

    In case if you are unable to wait that long, please send an email to pinalj1612 at gmail dot com and I’ll share a temporary patch that you can add to the plugin files to get this sorted.

    Have a great week ahead!
    Pinal

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add user name to “send quote” email subject’ is closed to new replies.