Top "Orders" questions

USE ONLY for related questions to e-commerce.

Get the product ID in WooCommerce 3+ Order items

I am trying to get woocommerce thank you page order_id. Using the code below. But unfortunately I can't get …

php wordpress woocommerce product orders
Send an Email notification to the admin for pending order status in WooCommerce

In WooCommerce, when a customer goes to checkout from cart and submit the order, if the payment is not processed, …

php wordpress woocommerce orders email-notifications
How to set minimum purchase order amount

When customer places an order, how to set minimum order amount? i.e) Total amount of order not below than $500. …

magento orders
WooCommerce Add item to Order

I'm trying to add an item to an existent order but it's not working properly... Everytime I execute the code …

php wordpress woocommerce orders
Detecting if the current user has an active subscription

I'm developing a website in WordPress with WooCommerce. I'm using additionally WC Paid Listings and WooCommerce Subscriptions plugins to handle …

php wordpress woocommerce orders woocommerce-subscriptions
WooCommerce Subscriptions - Get related orders Ids for a specific subscription

Is there woocommerce function that will return me all related orders (at least the order ID) for the specific subscription …

php wordpress woocommerce orders woocommerce-subscriptions
Woocommerce: Programmatically Updating Order Status

When I try to programmatically update an order during a WP_Ajax hook. IE. $order = wc_create_order($order_data); $…

php wordpress plugins woocommerce orders
Checking if customer has already bought something in WooCommerce

I would like to create a WooCommerce plugin to add some offers for customers (that have a purchase History). How …

php wordpress woocommerce product orders
Sending email to customer on cancelled order in Woocommerce

I am trying to send an email to the client when an order gets cancelled. By default, woocommerce only sends …

php wordpress woocommerce orders email-notifications
Get all WooCommerce customers paid orders with a SQL query

I need a query that returns me all the users with orders with payment approved. I'm having a hard time …

php sql wordpress woocommerce orders