based on Save product custom-field as custom order item metadata for WooCommerce admin manual orders I have these codes that show the weight and dimensions of the product for orders placed from the frontend, but I can’t get them to work for orders that are placed manually from the backend. When I add the products I do not see the
Tag: orders
WooCommerce: Automatically change the user role after a certain quantity of completed orders or a minimum amount in one order
I want to change automaticly user role to Premium after 3 completed orders Spending minimum 500 cash in one order I found on internet this two code snipets : And this one to access order history: Source: Checking if customer has already bought something in WooCommerce How I can tweak them to make it work ? Thank you in advance
Dynamic custom order numbers based on payment method
I have the following code in my functions.php file: The code works but I want it to permanently save the new order number. It should permanently make CHEXXXX (ex. CHE5783) the order number in the database if the user checked out using check payments. Right now this code only makes it temporary. It does not need to update previous order
How to get Order Details from a WC_Subscription instance Object
This one for completed initial subscription payments and subscription renewals. And this one for when a status is changed, so I can handle manual and system changes either manual overrides or failed/pending/active/whatever status based of payments or switches. Answer To get the Order details from the WC_Subscription Object, you will need first to get the parent ID (which is the
How to create a filter dropdown on WooCommerce admin orders list?
I am trying to create a shipping state filter dropdown on WooCommerce admin orders list First I have added a custom column for shipping state to admin orders list: And here’s my dropdown filter, for shipping state: And here’s my question: How to process the selected filter on admin orders list when I click the filter button? Answer There are
Automatically add a specific category and tags to a product when it goes out of stock after the order is placed [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question Hi I’m facing an issue regarding wordpress and WooCommerce I want to automate the process”when ever product goes out of
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 …
Remove product after an order has been placed in WooCommerce
I’m using the most recent versions of WordPress and WooCommerce. I’m aware this might seem weird out of context, but I wanna add a hook to my functions.php that removes a certain product by ID from an order after the order has been placed. Here is what I am working with so far: I am trying to remove the product
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.