chedpari
Forum Replies Created
-
Okay. This i did not know. Thank you for fast answers.
GreetingsOn the Order-Overview-Page there are the symbols to generate fresh PDF for shipping. Is it possible that these PDFs are pre-generated so that in Windows right click submenu is the “copy” posibilitiy (right now is “copy” is grey because the pdfs are not pre-generated)
Hey. I did a addidional checkout field called “salutation_” I need this value in the order-completed-email body text as placeholder {salutation_} to do the text there.
I tryed this in function.php: (but it do not work 🙁 )
add_filter( ‘kadence_woomail_order_body_text’, ‘add_extra_placeholders’, 10, 2 );
function add_extra_placeholders( $body_text, $email ) {
if ( is_a( $email->object, ‘WC_Order’ ) ) {
$body_text = str_replace( ‘{salutation_}’, $this->custom_field(‘salutation_’), $body_text );
}
return $body_text;
}Hello Ben,
thank you for your support.
This belongs to function.php in Child-Theme?
For the PDF Invoice i solved it in template with this:
$this->custom_field(‘salutation_’)