Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function local_pickup_extra_content_email($order, $is_admin_email) {
- if ( $is_admin_email ) {
- return;
- }
- if ( ICL_LANGUAGE_CODE == "he" && strpos( $order->get_shipping_method(), 'Local Pickup' ) !== false) {
- echo '<p><strong>Note:</strong> Please wait for telephone confirmation of local pickup.</p>';
- }
- }
- add_action( 'woocommerce_email_after_order_table', 'local_pickup_extra_content_email', 10, 2 );
- add_action( 'woocommerce_email_after_order_table', 'local_pickup_extra_content_email', 10, 4 );
- function local_pickup_extra_content_email( $order, $sent_to_admin, $plain_text, $email ) {
- // Only for "Processing Order" and "Order Completed" customer emails
- if( ! ( 'customer_processing_order' == $email->id || 'customer_completed_order' == $email->id ) ) return;
- if ( ICL_LANGUAGE_CODE == "he" && strpos( $order->get_shipping_method(), 'Local Pickup' ) !== false) {
- echo '<p><strong>Note:</strong> Please wait for telephone confirmation of local pickup.</p>';
- }
- }
Add Comment
Please, Sign In to add comment