wordpress - display item price (not item total) in woocommerce emails -
i need display item price in emails sent admin , customers using woocommerce. default templates display item, quantity, , price (item price x quantity). can add columns tables, don't know how data product. (it interesting has not been included in default. dont think i've ever placed order online did not include single item price.)
this post helpful, didn't give me quite needed: display tax in woocommerce invoice
i edited plugins/woocommerce/templates/emails/email-order-items.php after product name inserted price:
<br/> <strong><?php _e( 'price', 'woocommerce' ); ?>:</strong> <?php echo apply_filters( 'woocommerce_cart_item_price', wc()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); ?>
nb! put custom files in directory mytheme/woocommerce/emails/ - without "templates" folder (!). strange it's way force them working.
Comments
Post a Comment