If you make the changes directly through SQL you won’t trigger the order change event and that’s why the email is not being sent.
Instead of changing order via SQL you need to use some predefined function like update_status :
$ord = new WC_Order($ID); //ID of the order
$ord->update_status('completed')
Related Posts:
- Get WooCommerce product attribute taxonomies in a SQL query on WordPress database
- How to get all products from an order including variations via SQL query?
- Woocommerce change tax rate programmaticly
- How do I get the latest note on the order at woocommerce? [closed]
- Create WooCommerce new order with specific ID
- How to Order by random on a SQL query
- Woocommerce: Prevent sending of email when order is “Completed”
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- WooCommerce quick checkout form? [closed]
- WooCommerce order complete email logic
- WooCommerce orderby template disappears and not longer works on search page
- How to get woocommerce selected variation from order object
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- get woocommerce product image url and price from database [closed]
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- how can i add an additional action into woocommerce admin order page through my plugin?
- Create a regular post for every WooCommerce order
- How to alter taxes amounts when updating an order
- WordPress woocommerce new order email not working
- Custom Email via Hook only for completed order
- Access custom meta_data in processing order email
- Sort products by Sale price and stock status
- Create order actions from custom fields woocommerce
- How to sort products by price ASC and place all no price products to the end? (Woocommerce)
- Update WooCommerce stock status with SQL query if stock value is greater than 0
- How to get products without tag?
- how can my customers view their purchased products history like an invoice in a specific page on WordPress
- Change the customer’s name to a link on an order management page
- Woocommerce change the price of products in the database
- How to save one API response to WooCommerce order meta data
- Query product’s image path by category WooCommerce database?
- How to speed up “My Account > Orders Page” on Site with More than 200,000 orders?
- Alter the cost of products using phpmyadmin sql query
- Add button linked to single product page on order detail page
- Multiple sorting criteries (order by)
- Conditional email recipient based off Shipping Method [closed]
- Product atributes in title of order (not in description)
- WooCommerce: Order Details Table > Add Product Meta
- Use a woocommerce hook to create a table and populate it with a query
- Woocommerce admin order email customize – remove product short description
- Critical error on woocommerce checkout page
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- Display WooCommerce size product attribute on shop page
- WooCommerce add_to_cart() with custom price [closed]
- Declaring custom woocommerce product type as virtual / downloadable only [closed]
- How to remove_action inside class [duplicate]
- Redirect if current user is logged out and current page is /my-account
- Display a list subcategories under the main product category thumbnails?
- WooCommerce Apply Coupon to order AFTER taxes
- Rewriting Woocommerce Product Filters To URL Segments
- How to Change WooCommerce Variable product pricing by SKU or visible children id
- Is it possible to cache ?wc-ajax=get_variation
- echo product id and product_item_key in cart [closed]
- Redirect the single product page link to the shop page
- Is WooCommerce updates for WordPress necessary? [closed]
- How can I display *only* the child category of a product?
- How to display empty stars on products with woocommerce?
- WooCommerce limited role
- Skip WooCommerce 4.5.x onboarding with WP-CLI [closed]
- Automatically making a newly saved payment method default in WooCommerce
- WooCommerce update_shipping_method ajax call wipes shipping method set on non-checkout page [closed]
- Product variation attributes does not appear as it should in the cart – woocommerce [closed]
- Shipping methods in dropdown instead of radio buttons [closed]
- Adding Buy Button to Blog Post (Woocommerce) [closed]
- How to replace WooCommerce Product Gallery Trigger icon using PHP/CSS? [closed]
- woocommerce_order_status_completed not working
- Synchronise Renewals on existing subscriptions [closed]
- How to show the urls inside the simple product when the customer buys it?
- Custom template – query issues
- Sort downloads by most recently purchased first in my account WooCommerce [closed]
- Hide shipping method in woocommerce if custom checkbox field is selected
- how to change add to cart button to call for price button in one of product variation?
- apply_filter and add_filter conflict
- Migrating WordPress + WooCommerce from server to Local
- wp-cron and woocommerce subscriptions killing performance
- How can I change the background color of divs dynamically (depending on an order-status in woocommerce)?
- How to make wocommerce shop products same heigt
- Woocommerce Variation product added twice to cart
- Woocommerce product query not working in other WPML languages
- Woocommerce Ajax add to cart redirect to homepage
- How to merge 2 accounts with same email address after merge of 2 woocommerce databases
- Get $order in wp_head
- How to save a Woocomerce metabox input as a metadata field
- Adding order details in woocommerce all booking dashboard
- woocommerce sort by dropdown styling
- Mysql query – amount spent by customer
- Integration widget Mondial Relay Js
- some products free and some product is not free for shipping
- Importing Attributes in to Woocommerce
- Save Woocomerce discount as percentage to database
- Woocommerce Shipping based on condition and cart value
- How to bypass Woocommerce checkout validation from the plugin? [closed]
- Category with description and thumbnail
- Woocommerce – Remove ‘Buy Product’ Button + Make Product Thumbnails Clickable
- Issue with Woocommerce and extra field in orders data
- Give auto discount to upsells products
- WooCommerce Table Rates not splitting up
- Woocommerce checkout column total too small can not get it wider [closed]
- Conflict between Woocommerce Booking + Woocommerce Product Options [closed]