Order details
Total voucher |
0 |
Total amount |
$0.00 |
‘ . __(‘Checkout details’, ‘woocommerce’) . ‘
‘;
echo ‘
‘ . __(‘Please ensure that the information below is correct’, ‘woocommerce’) . ‘
‘;
}
add_action(‘woocommerce_review_order_before_payment’, ‘woocommerce_before_payment_area’, 50, 0);
remove_action(‘woocommerce_checkout_order_review’, ‘woocommerce_checkout_payment’, 20);
add_action(‘woocommerce_after_order_notes’, ‘woocommerce_checkout_payment’, 20);
add_action(‘woocommerce_checkout_before_order_review’, ‘wp_kama_woocommerce_checkout_before_order_review_action’);
/**
* Function for `woocommerce_checkout_before_order_review` action-hook.
*
* @return void
*/
function wp_kama_woocommerce_checkout_before_order_review_action()
{ ?>
Thank you for your order
We will send the gift voucher email to your recipient directly and just to be safe, we will also send a copy to you.
‘;
}
add_action(‘woocommerce_review_order_before_cart_contents’, ‘custom_woocommerce_review_order_before_cart_contents’);
function custom_woocommerce_review_order_before_cart_contents()
{
echo ‘
‘ . __(“Total voucher”, “thenailist”) . ‘ |
x’ . WC()->cart->get_cart_contents_count() . ‘ |
‘;
}
function ymcode_remove_shipping_details_from_woocommerce_email($total_rows, $obj, $tax_display)
{
if (isset($total_rows[‘shipping’])) {
unset($total_rows[‘shipping’]);
}
return $total_rows;
}
add_filter(‘woocommerce_get_order_item_totals’, ‘ymcode_remove_shipping_details_from_woocommerce_email’, 10, 3);
add_action(‘woocommerce_email_footer’, ‘bbloomer_remove_get_the_app_ad’, 8);
function bbloomer_remove_get_the_app_ad()
{
$object = WC()->mailer();
remove_action(‘woocommerce_email_footer’, array($object, ‘mobile_messaging’), 9);
}
function so_39251827_remove_order_details($order, $sent_to_admin, $plain_text, $email)
{
$mailer = WC()->mailer(); // get the instance of the WC_Emails class
remove_action(‘woocommerce_email_order_details’, array($mailer, ‘order_details’), 10, 4);
}
add_action(‘woocommerce_email_order_details’, ‘so_39251827_remove_order_details’, 5, 4);