Top "Orders" questions

USE ONLY for related questions to e-commerce.

Accessing Order Items protected data in Woocommerce 3

I am trying to get the line items of an order. I'm doing this: $order = new WC_Order(147); foreach ($order-&…

php wordpress class woocommerce orders
Add a custom order note programmatically in Woocommerce admin order edit pages

In woocommerce I am trying to add a custom order note in the admin order edit pages through php (so …

php wordpress woocommerce backend orders
In magento, how to add shipment and track number to order

I need to dynamically add a shipment and shipment track into an order, it needs to be dynamically because we …

magento orders
Add columns to admin orders list in WooCommerce

I am using WooCommerce plugin for one of my ecommerce WordPress websites. I want to add some columns to my …

php wordpress woocommerce backend orders
Check if a user has purchased specific products in WooCommerce

I need to check if a customer has purchased a specific product earlier in WooCommerce. The case is this: The …

php wordpress woocommerce product orders
Set WooCommerce order status when order is created from processing to pending

When a woocommerce order is created the status of the order is "processing". I need to change the default order-status …

php wordpress woocommerce checkout orders
Woocommerce: Which hook to replace deprecated "woocommerce_add_order_item_meta"

Need to add custom meta to order items. Googled it and most articles says to use "woocommerce_add_order_item_…

php wordpress woocommerce hook-woocommerce orders
Renaming WooCommerce Order Status

I would like to rename the WooCommerce order status from "Completed" to "Order Received". I can edit the script below …

php wordpress woocommerce hook-woocommerce orders
Get the order id from the current user orders In WooCommerce

Here is the situation. I have a woocommerce site used as a marketplace. I'm selling games on it, for some …

php wordpress woocommerce product orders
Woocommerce: Get all orders for a product

In the Woocommerce API I see a method wc_get_orders WooCommerce Order Functions In the mentioned args I do …

php sql wordpress woocommerce orders