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
- Is it possible to extract all product columns except for one?
- Get the product list of a given Category ID
- Correct function to get the user’s latest Woocommerce Subscription?
- Move payment options at checkout in WooCommerce [closed]
- WooCommerce – Hook after Loading Variation in Admin Edit page?
- WooCommerce conditional meta query
- Updating WooCommerce variable product stock issue
- Redirect woocommerce single-product page
- Username field is not shown in Woocommerce’s registration contact form
- Woocommerce Membership Expiry Date
- Woocommerce SKU on ALL products page [closed]
- Redirect user to cart page when add to cart button is clicked
- Woo API REST : product variation price is read-only?
- Problems with varibel price [closed]
- Custom Admin Email Subject for Woocommerce (3.8.0) Orders
- Woocommerce custom endpoints
- Add Custom Slug Tags Per Page
- How to override Woocommerce functionality in Reports section?
- how can use woocommerce add to cart popup?
- Do I need a different product type for WooCommerce [closed]
- How to increase execution time out limit in WordPress dashboard?
- Setting an attribute as variation in woo commerce via php [duplicate]
- WooCommerce – Conditionally enable shipping for virtual products
- Add to Cart button displaying twice on Shop Page Woocommerce
- How to exclude a taxonomy from shop & search page wooCommerce?
- How to remove unwanted text bug in wordpress site
- Trying to style Woocommerce sidebar Cart Widget [closed]
- WooCommerce how to checkout a product without adding it to the cart
- How can i access woocommerce order variables inside shortcode?
- Conditional logic – if product has a parent category, echo this
- How to add a “buy now” button below “add to cart” button [closed]
- Cart page displays the price and amount as zero regardless of price entered [closed]
- Get usermeta info from sql query
- Custom action not working in Woocommerce
- Woocommerce variable product’s total amount by javascript
- Prices showed without decimals separator on BACKEND. Weight/price not working on Wocommerce
- Save product short description in order (without updating in order details if it is updated in product)
- Combine one action and one filter
- woocommerce add button underneath order details
- Where do I remove admin order fields (unset doesn’t work)
- How to Get WooCommerce Product Price
- How to trace errors in debug.log for WooCommerce 3.0?
- Auto set Woocommerce product ID as SKU on save
- I want to show always 4 category boxes everytime in woocommerce
- Applying pre-production modifications
- WooCommerce – Remove automaticly added membership product if user remove regular product from cart
- Possible to have multiple Authorize.net accounts on the same site?
- Allow HTML in product attributes for WooCommerce
- Use woocomerce shop filters on other pages
- Woocommerce – change image issue
- Woocommerce: relevancy based related products
- How to allow registration only from a certain location?
- Add confirmation popup on place order button
- Change WooCommerce Checkout Button – Reverts to normal
- Can’t display product categories on woocommerce getting Invalid taxonomy?
- Send form data to functions.php
- Conflict between Woocommerce Booking + Woocommerce Product Options [closed]
- Searching in categories AND custom fields
- How to detect changes in WooCommerce store (react)?