Get the order object in Woocommerce email-header template

To access the $order object in your WooCommerce email-header template, follow these steps: 1. Add the following code to your theme’s ‘functions.php’ file: add_action(‘woocommerce_email_header’, ’email_header_before’, 1, 2); function email_header_before($email_heading, $email) {     $GLOBALS[’email’] = $email; } This action hook ensures that the global $email variable is available in your template. 2. In your ’emails/email-header.php’ …

Get the order object in Woocommerce email-header template Read More »

How to redirect user directly to checkout page after adding product to cart in Woocommerce

WooCommerce default option that allow for Redirect to all users to the cart after adding a product to the cart. You can find the option in the WooCommerce -> Settings -> Products -> Display area. When the option “Redirect to the cart page after successful addition” is checked. It will redirect all users to the …

How to redirect user directly to checkout page after adding product to cart in Woocommerce Read More »

How to remove billing detail for logged in users in woocommerce checkout

In Woocommerce, When customer purchase a product, woocommerce add a form to enter his billing details. It’s Woocommerce default functionality but in some case many shop owner want get money from customer and send product , that’s all, no need to make customer enter any billing address information another way many shop owner want to …

How to remove billing detail for logged in users in woocommerce checkout Read More »

Showing Products When No Products Were Found Matching Your Selection

Sometimes customer on your site search product but it can not find specific product or result will be display “No products were found matching your selection.” It may be happen by keyword they used for find product not be specific or your shop doesn’t have this product which they want. So Woocommerce display a meassge …

Showing Products When No Products Were Found Matching Your Selection Read More »

Scroll to Top