$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>How to add a custom text for order confirmation email template woocommerce|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How to add a custom text for order confirmation email template woocommerce

matteradmin9PV0评论

Hi i would like to add a custom text in order confirmation email template . Currently i am not using woo commerce tax option, But i would like to mention my product has 25 % including vat in email template . That custom text need to show only in order confirmation email template near Order total : Total: 348.00 DKK ( Including tax 25% ) .

Hi i would like to add a custom text in order confirmation email template . Currently i am not using woo commerce tax option, But i would like to mention my product has 25 % including vat in email template . That custom text need to show only in order confirmation email template near Order total : Total: 348.00 DKK ( Including tax 25% ) .

Share Improve this question asked Jun 23, 2015 at 5:48 deve cotdeve cot 331 gold badge2 silver badges8 bronze badges 2
  • Have you override the woo-commerce template? – Mitul Commented Jun 23, 2015 at 7:11
  • There's a simple plugin for this wp-html-mail/woocommerce-custom-email-content – Hannes Commented Feb 3, 2017 at 18:44
Add a comment  | 

2 Answers 2

Reset to default 1

You can add custom text or html using this action.

add_action( 'woocommerce_email_after_order_table', 'add_order_email_instructions', 10, 2 );

  function add_order_email_instructions( $order, $sent_to_admin ) {
   if ( ! $sent_to_admin ) {
     echo 'Custom HTml OR Custom Text';
    }
}

Go to your child theme folder.

Find woccomerce > emails

from here you can edit your email template.

Refer this link this will might be helpful

Post a comment

comment list (0)

  1. No comments so far