• Resolved joy0114

    (@joy0114)


    Hi,

    You add a new feature in your last release: the possibility to create the email sent to the customer. Great.
    Is it possible to write php code within the content of mail ?

    I need to get 2 variations of this notification, one in french, and the other in english. So, I thought to use this field to write some php code in order to call a translation. I use Polylang, so something like that:

    <?php echo pll__(‘Follow the link to track your parcel’); ?>
    {tracking_details}

    Thank a lot for any idea !
    Best regards
    Bertrand

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Zorem

    (@zorem)

    Hi, we added the option to use WooCommerce email template for the delivered email and in this case, you can override the email template file.
    Please update to latest version and let me know if you have more questions.

    • This reply was modified 5 years, 11 months ago by Zorem.
    Thread Starter joy0114

    (@joy0114)

    Hi Zorem,

    Thanks a lot for this new feature.

    But, unfortunately, the woocommerce template located in /wp-content/plugins/woo-advanced-shipment-tracking/templates/emails/ (so called customer-delivered-order.php) can’t be overriden with a template located in /wp-content/themes/my-child-theme/woocommerce/emails

    Lots of tests, but no way … I had to modify the master template if I want to get my own email aspect above the tracking info section.

    Not so important, we have just to keep a renamed release of files somewhere in case of update.

    Your plugin is so useful ! Thanks again.

    Plugin Author Zorem

    (@zorem)

    Hi, We fixed template override issue in latest version 1.9.2.5. So now you can override template in theme.

    Thread Starter joy0114

    (@joy0114)

    Wonderful !

    All is right. Thanks a lot !
    Have a good day.
    Bertrand

    Plugin Author Zorem

    (@zorem)

    Great ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Email notification?’ is closed to new replies.