Terry Tsang

Terry Tsang
About

WooCommerce

WooCommerce Custom Order Status Processing

WooCommerce Custom Order Status “Processing”

Sometimes there is a need for a custom new order status for WooCommerce orders such as “Processing”, “Shipment Suspended On Holidays”, “Picked Up by Courier” and so on. Below is the code snippet you may add to the bottom of theme functions.php for example “Processing” new order status. You may replace text “Processing” with your …

WooCommerce Custom Order Status “Processing” Read More »

WooCommerce Snippet Series 06 - Display Purchase Note to All WooCommerce Emails

Display Purchase Note in All WooCommerce Emails

Purchase Note from the Product Data will be displayed at the customer’s new order which is completed. But what if you want to display that “Purchase Note” in all emails including the admin ones? Below is the code snippets you can add to your theme functions.php: function tt_display_purchase_note_in_all_emails( $args ) { $args[‘show_purchase_note’] = true; return …

Display Purchase Note in All WooCommerce Emails Read More »

Add Payment Method to WooCommerce New Admin Order Email

Add “Payment Method” to WooCommerce New Order Email

Sometimes as an admin we would like to know what kind of payment method the customer used for the new order. Below is the code you may copy and paste at the bottom of functions.php where you can access it through > Theme File Editor > functions.php. function tt_add_payment_method_to_new_order_email( $order, $is_admin_email ) { if ( …

Add “Payment Method” to WooCommerce New Order Email Read More »

WooCommerce Show “Free Shipping” Only When It’s Available

WooCommerce Show “Free Shipping” Only When It’s Available

WooCommerce will show all shipping methods that match the customer and the cart contents as the default setting. This means “Free Shipping” will also show along with “Flat Rate” and other shipping methods. What if you would like to hide other shipping methods and show only “Free Shipping” when it’s available? Here is the code …

WooCommerce Show “Free Shipping” Only When It’s Available Read More »