How to get the complete state name from a WooCommerce order?

I’m new to WordPress and WooCommerce plugins and such. I’m writing a plugin and I need to send some data to a SOAP API, the case is that the API only accepts the state full name but I’m only getting …

Display a custom delivery notice on WooCommerce orders and email notifications

With the following code I display a custom message on WooCommerce checkout page. When a customer places an order on a Saturday and Sunday, the order will be delivered on the next Monday. If a customer …

WooCommerce: get and echo “Order Total” on checkout page

I am trying to get the “Order Total” in a function with this code. But not working. The total is not printed at all. What am I missing here? add_action(‘…

Hook woocommerce_checkout_order_processed order items issue

I am working on a WooCommerce project. I need to add some entry based on ordered item in my custom table. If user ordered 3 items then those 3 entry will be place along with some data in my custom …

Set admin email as BCC for WooCommerce cancelled and failed orders

I am currently using this code to send out notifications on failed and cancelled orders. function wc_cancelled_order_add_customer_email( $recipient, $order ) { return $recipient . ‘,’ . $order->…

Change order status for virtual, downloadable, free or backorder products in WooCommerce

i try to slightly modify with +1 check for plugin located here So , for all Virtual Downloadable Free (price=0,00) & on Backorder products I want Woocommerce to set order status ‘Processing’ the …

Change the order of admin billing address fields in WooCommerce orders

I have problem with woocommerce order in admin I want the billing_address_2 show at the end of the page as exmple bellow. can any one please help me.

Get a custom calculations as WooCommerce admin bulk orders action

i want to make order totals go under a calculation formula. i have drivers whom salary is per order. they deliver paid and unpaid orders. so They collect unpaid cod payments from the customers.At the …

Display last WooCommerce admin order note in customers order history

I am looking to display the last Order Note, currently only viewable via Admin in Woocommerce, on the customer side in their Order History. So they can view the tracking number we add in after the …

Add customer email and phone in “Order” column to admin orders list on Woocommerce

I am trying to find a way on how to add the customer phone and email below the name on the WooCommerce order view. See picture for reference where I need to add this information. Any ideas, tips or …