• Resolved birkasgeri

    (@birkasgeri)


    Hi,
    How and when can I customize the contect of the email containing the downloadable coupon sent to the customer ?
    Is there a way?

    Thanks
    Geri

    • This topic was modified 5 years, 4 months ago by birkasgeri.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi @birkasgeri

    thank you for your message!

    You may customize the content of an email by copying and adjusting such a template from flexible-coupons-pro/src/Views/emails/coupon.php
    to your theme’s folder:
    YOUR-THEME/woocommerce/emails/coupon.php

    You can access and copy the template through WooCommerce->Settings->Emails menu tab.

    I hope it helps.

    Best regards

    Thread Starter birkasgeri

    (@birkasgeri)

    Thank you so much,

    I found the php file, however I’d like to enter Hungarian characters in the text of the letter.
    With characters like “őüöű”, how can I do that?
    If I change the English text in the php file, the line doesn’t appear.

    Thank you for your help

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi birkasgeri,

    thank you.

    What place are you changing? If you are modyfiying strings inside esc_html__() functions, it’s better to change them by adding translation for Hungarian with Poedit, Loco Translate or Say what.

    If you add additional text in Hungarian inside php template that should be visible for newly created/ sent emails.
    You may also check settings for character set inside your wp-config.php: https://ww.wp.xz.cn/support/article/editing-wp-config-php/#database-character-set

    I hope it helps. Let me know if it does.

    Best regards,

    Thread Starter birkasgeri

    (@birkasgeri)

    Thanks for your reply.
    I changed the php file to UTF-8. It solved the problem.

    However the file is still at its original location in the Flexible Coupon’s older.
    Shall I copy this to the child theme? Where exatcly? The folder you suggested doesn’t exist. Should I create one?

    Thanks

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi birkasgeri,

    I am glad it helped. Yes, you may copy the file into the template you are using.
    Please create them in your current theme (a child theme if you are using one) /woocommerce/emails/

    So the final route for the coupon.php will be YOUR-THEME/woocommerce/emails/coupon.php

    That should “do the job”.

    Let me know if it does if you have further questions.

    Best regards,

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi birkasgeri

    I have marked the thread as resolved.

    However, if you have any questions, let me know and I will reopen it.

    Best regards

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Buyer’ s email content’ is closed to new replies.