1. I need a shortcode to show {order_shipping_phone} on:
a) order details page
b) Implement a paid plugin (Woo Instant Notifications), (attached) to operate with the above and below shortcodes. I have consent from the author to do these changes so.
2. I need to break down the {woocommerce_email_order_meta} and {email_order_total_footer} in separated shortcodes for each item. Including {order_payment_method}. these causes my receipts to display with 2 spaces between lines and I want to remove it. Please see receipt attached.
Please see attachments for details.
********************************************
I have two snippets that are working perfectly fine in the (New_admin_order_email), so its is easy to make a shortcode from those.
********************************************
This is for shipping phone number to appear in the email (working fine) (need a shortcode implemented into the plugin)
add_filter( 'woocommerce_email_order_meta_fields', 'custom_woocommerce_email_order_meta_fields', 10, 3 );
function custom_woocommerce_email_order_meta_fields( $fields, $sent_to_admin, $order ) {
$fields['meta_key'] = array(
'label' => __( 'Livraison Tel' ),
'value' => get_post_meta( $order->id, '_shipping_phone', true ),
);
return $fields;
}
********************************************
This displays order Payment method.
add_action( 'woocommerce_email_after_order_table', 'wdm_add_shipping_method_to_order_email', 10, 2 );
function wdm_add_shipping_method_to_order_email( $order, $is_admin_email ) {
echo '<p><h4>Mode de livraison: ' . $order->get_shipping_method() . '</h4></p>';
}
Thanks
Expert in Web Designing and Development, I can Built or revamp your Website with all of Requirements. Ready to start Work with you!
Inbox me and let's talk to get started!
i can customize emails in woocommerce / create the shortcodes
I have plenty of experience working on wordpress / woocommerce themes, websites and plugins
John, I will summarize all the lectures and provide you with clear, concise notes. I am a PhD writer with 5 years of experience. I have worked on several similar projects compiling presentation slides and lecture notes into a single set of notes, and can deliver quality notes to tight