orders Questions

2

Solved

Is there woocommerce function that will return me all related orders (at least the order ID) for the specific subscription that user has bough? I have found in this official documentation Subscrip...

5

Solved

I can add an order note (private note) with: $order->add_order_note($info_for_order); But when I tried to get the values in some page with: get_comments(['post_id' => $order_id]) // or $...
Lcm asked 18/4, 2017 at 3:44

3

Solved

I'm in the process of converting an open source plugin to be HPOS-compatible. One of its features is additional filters on the orders list in admin (inline with the order statuses), eg: I can't se...
Fission asked 26/10, 2023 at 10:7

7

Solved

In WooCommerce from the following line code: $order = new WC_Order( $order_id ); How can I get WooCommerce order details from the order id?
Bespectacled asked 8/9, 2016 at 23:0

5

Solved

Woocommerce 3.5.x has a special page at the user account (My Account) area where it displays the user's previous Orders. This page is now 5 column displays as default. Here the screenshot of the ...
Diffident asked 5/12, 2018 at 1:17

3

In WooCommerce, when a customer goes to checkout from cart and submit the order, if the payment is not processed, the order is set to "pending" payment. The Admin doesn't received any email about. ...
Undressed asked 28/7, 2017 at 13:45

3

Solved

How can I get the product description or the product object using product ID. $order = new WC_Order($order_id); foreach ($order->get_items() as $item) { $product_description = get_the_product...
Morehouse asked 4/11, 2013 at 8:22

2

Solved

I am trying to add Custom Order Action in WooCommerce Orders Page. I want to add two new options in Bulk Order Actions Dropdown in WooCommerce Mark Refunded Mark On- Hold Any help in this rega...
Fontainebleau asked 2/6, 2014 at 12:44

2

Solved

I have a custom field on my WooCommerce single product. It sends to the cart fine, it displays on checkout fine, it shows in the order in the dashboard fine. What I am now trying to do is set the ...
Sills asked 11/6, 2016 at 17:59

4

Solved

When a woocommerce order is created the status of the order is "processing". I need to change the default order-status to "pending". How can I achieve this?
Rema asked 31/8, 2017 at 15:47

2

Solved

I'm trying to get all the shop orders with a meta key "order_referrer_id" and the value will be a user id for example "1060". This is what i have tried so far: $args = array( '...
Preset asked 11/3, 2022 at 12:43

10

Solved

I would like to create a WooCommerce plugin to add some offers for customers (that have a purchase History). How can I check a user bought something before? Thanks.
Robbins asked 10/8, 2016 at 13:0

3

Solved

In WooCommerce, I would like to send a request to an API once the customer has successfully checked out. Its basically a website where the client is selling online courses (Like udemy). When the cu...
Merocrine asked 1/3, 2017 at 11:33

5

Solved

Normally, WooCommerce should autocomplete orders for virtual products. But it doesn't and this is a real problem, even a BUG like. So at this point you can find some helpful things (but not really ...
Languor asked 28/2, 2016 at 18:45

1

Solved

In my custom plugin I need to catch every time an order status changes from wc_on_hold to wc_completed so I tried to write down: function so_status_completed( $order_id, $old_status, $new_status ) ...

4

Solved

I would like to rename the WooCommerce order status from "Completed" to "Order Received". I can edit the script below located in wc-order-functions.php, but I would prefer not to modify any core fi...
Mahau asked 13/6, 2016 at 13:16

5

Solved

In the order email templates (for example email-order-items.php), WooCommerce uses the function wc_display_item_meta to display product details in the order table. The function code is present in t...
Layer asked 6/10, 2018 at 23:59

4

Solved

With WooCommerce, I have the following hook in my function.php after the new order is submitted: add_action( 'woocommerce_new_order', 'create_job_openings'); function create_job_openings($order_id...
Seineetmarne asked 12/1, 2017 at 4:41

3

Solved

I would like to get all slugs and names of all the WooCommerce order statuses. I tried the answers from the following thread: Woocommerce get list of order statuses list but with no success. I use...
Uxorial asked 22/1, 2020 at 16:13

4

Solved

I needed to create a Woocommerce order programatically, however using the 'old' Woocommerce made this a very dirty procedure. I had to insert all kind of database records manually, using many upda...
Ramos asked 27/10, 2014 at 5:6

3

Solved

In WwooCommerce, I am trying to add the ship to different address information in my admin email. How can I check if the checkbox to ship to different address from checkout page is checked? I trie...
Irma asked 6/10, 2017 at 2:54

1

Solved

How do I retrieve the order ID from the order KEY in WooCommerce? (PHP code) e.g. I have the order KEY which looks like 'wc_order_qkTc2RVyGtVil' and I want to get the order ID which looks like '195...
Yes asked 20/4, 2021 at 15:34

2

Solved

how to get metadata of a product woocommerce? I have field custom en my products and I need to get this data. {"ID":151, "ORDER_ID":251, "NAME":"car", "PRODUCT_ID":87, "VARIATION_ID":0, "QUAN...
Administer asked 1/2, 2018 at 14:54

2

I have created in WooCommerce two custom coupon types: function custom_discount_type( $discount_types ) { $discount_types['cash_back_fixed'] =__( 'Cash Back fixed discount', 'woocommerce' ); $di...
Progressionist asked 7/7, 2017 at 18:8

2

Solved

I have managed to put this together after searching the web and yet, it does not work. My aim is to automatically cancel ALL orders with the status on-hold no matter the payment gateway if the orde...
Baroscope asked 22/4, 2019 at 9:41

© 2022 - 2024 — McMap. All rights reserved.