• Resolved astral4ik

    (@astral4ik)


    Purchase notes only shown in emails for customers.
    In mail for admin (new order) it doesnt work
    How can i switch on purchase notes in NEW ORDER emails?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YayCommerce

    (@yaycommerce)

    Hello @astral4ik

    Have you tried these shortcodes please?
    https://prnt.sc/9sZ9w4EYicvd
    Let us know if it helps.
    Cheers!

    Thread Starter astral4ik

    (@astral4ik)

    not customer notes, but PURCHASE NOTES. It shown below each product (if exists) in mails for customers, but not for admin.

    I found it in email-order-items.php

    // Show purchase note
    	$purchase_note = '';
    	if ( $product && $product->get_purchase_note() ) {
    		$purchase_note = $product->get_purchase_note();
    	}
    
    	if ( ( 'customer_on_hold_order' === $this->template
    		|| 'customer_processing_order' === $this->template
    		|| 'customer_completed_order' === $this->template
    		|| 'customer_refunded_order' === $this->template
    		|| 'customer_invoice' === $this->template
    		|| 'customer_note' === $this->template )
    		&& isset( $args['show_purchase_note'] )
    		&& is_object( $product )
    		&& ! empty( $purchase_note )
    	)

    If i just add custom row

    || ‘new_order’ === $this->template
    it works, BUT how can i add it by snippets to avoid resetting my changes after plugin updates.

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @astral4ik ,

    I think you have to add the code every time you update, because by default new order doesn’t fall under this condition. You can check with default Woo Emails.

    Thank you.

    Kind regards,
    -Bruce-

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PURCHASE NOTE’ is closed to new replies.