Orders Questions
Ad
How to link WooCommerce guest orders to customer account after registration
Our scenario is: the guest user enters the site and places one or more orders without the need to register. and after a while, he decides
How to use WC_Order_Query class with custom order status
There is a new order status i created: packed. i want to get orders with order status "packed". this order status must have been
conditionally display woocommerce completed orders
Currently, on my website, there is a custom user profile field (example midwife_practice, users fill this during registration) that has the same
How to use Razorpay Orders API in Flutter?
I'm implementing a payment gateway in my flutter application. so razorpay recommends me to use orders api. but i don't get any ways to implement
How to display the last ordered product in WooCommerce via a shortcode
I'm looking for a way to display the last ordered product on another page. i think it would be possible to maybe create a shortcode in the
Update WooCommerce order status if product custom field is set
I need to automatically set a certain order status (different than processing) when getting a new order. this is achieved by this
Determine the sequence of custom column in WooCommerce admin orders list
I've added a new custom column in the woocommerce admin order list: add_filter(
Display message in WooCommerce email notifications when order has backorder items in it
I am trying to display a specific message on the order confirmation email if one of several products of your order is/are on backorder. i
Uncaught ArgumentCountError: Too few arguments to function order_completed(). on woocommerce_order_status_completed hook
I am getting the below error: [30-nov-2021 16:08:47 utc] php fatal error: uncaught argumentcounterror: too few arguments to
Add a sortable and searchable "customer country" column in WooCommerce admin order list
I added a "customer country" column to the woocommerce orders table (in admin dashboard), but i can't figure how to make it sortable.
Ad
Add the order ID to the order item metadata before the order is saved and WooCommerce email notifications are sent
I need to add a link with the order id and a password to the order item metadata. currently, i am adding successfully other info to the
Changing the order item meta data in WooCommerce email notifications
I need to change/customize a specific order item meta data for woocommerce email notifications, but i can't find a solution. i found
Add extra customer note on order creation for specific user role in WooCommerce
For a specific user role i want to add a specific customer note to the order. this is my code:
Issue with displaying product image on WooCommerce admin orders list
As woocommerce doesn't show product images on the order page i created a php function to add new columns and to show all the details i need, but i
Add custom column with payment url on WooCommerce admin orders list
I want to add extra column on woocommerce admin orders list with the payment url the url is/look like this:
Woocommerce my account page runs an extra loop for new customers
I have a problem on the "my account" page of my woocommerce store. indeed, when i log in with a new customer account that has never
Removing shipping total from order total in WooCommerce
I'm trying to remove the shipping cost from the cart totals, which i have got working on the cart and the checkout page using the following
Immediately set on-hold orders to processing in WooCommerce and send the processing email notification
I need to set all woocommerce orders that come in as "on-hold" to "processing" and also have the order-processing email sent
Add an action button with a unique CSS class to WooCommerce my account orders
Here is my function for adding an option to my orders page: add_filter(
Add multiple custom columns (notes and VAT) on WooCommerce admin orders list
I have already inserted this snippet to show an additional column with an icon if there are customer notes in the order. it works.
How to Access the Order ID in the New Section on the My Account Page?
Customers must confirm a contract for each order when purchasing products. customers cannot purchase the product without confirming this
Ad
Show product categories in a new column on WooCommerce "My account" orders table
I want to add a custom column, to display the product categories on the orders history table in woocommerce i found how to add a custom
Remove duplicate values from custom column on WooCommerce admin orders list
I have the following code that adds a custom column on woocommerce admin orders list
Anyway to change the Total title from the WooCommerce order received page's order overview
Is there a hook to change the total title from the woocommerce order received page's order overview? please see the below image to understand
Hide orders that contains a specific product in WooCommmerce "My account" orders table
My intention is to hide orders that contains a specific product id (5). this in the woocommmerce "my account" orders table what i
Display latest orders on WooCommerce "My account" Dashboard
I'm trying to show customer last 3 orders on woocommerce dashboard. but get_template() does not work at all and shows nothing.
Setting custom order statuses as paid in WooCommerce
I have a custom status that i need to set as 'paid', in the same sense that the core statuses processing and complete are 'paid' statuses.
Enable and disable 'edit' on orders for shop manager (woocommerce)
I'm currently using the
How to set a maximum limit in WooCommerce orders per item & per day
I want to allow only a specific number of orders per product per day on my shop. any idea which hook do i have to add? thanks
Go through certain WooCommerce orders, collect data and then send the results via email
The purpose of my code is to go through all orders from yesterday. then i want the: subtotal tax gratuity
Add a clikable dynamic payment request uri to on-hold email notification in WooCommerce
I have a payment request uri that looks like this:
Ad
Display custom field between billing address in WooCommerce admin order edit pages
I´m currently trying to add a custom field to the default address fields (firstname, lastname, etc...) the field should be used, to set a
Woocommerce how to get products images of recent orders
The code below re-displays each image without resetting at each foreach loop. for example it gives: product 1 - image1
WooCommerce increase stock button on order page
Does anyone have (or know of) a php code snippet solution to add automation say a checkbox to increase stock by quote list or bring back the
Remove payment details Woocommerce order's page in backend
I see a post about to translate or change the text "paid on" on woocommerce backend order's detail page. i integrated it for bacs and
Hide totals in the order history table and view order popup based on order status in WooCommerce
I am using an order proposal plugin which creates a custom gateway for users on the checkout page, so that when they checkout, their order gets
Changing the position of the product image in WooCommerce email notifications
Based on display the product image in woocommerce email notifications answer code i
Issue adding date created to order number when creating order manually in WooCommerce
I use the following code to modify the order number in woocommerce. add_filter(
How to add multiple user metadata as order metadata in Woocommerce
I've created two custom user profile fields which i also use as user meta data. when an order is created, i need this information to be saved as
Add product SKU in WooCommerce "My account" orders table
Currently, this is the text on the woocommerce order table under the total column. (ghs 5.00 for 10 items)
WooCommerce: How to calculate and list total weight of each order with status 'on hold' and calculate total amount and total weight for all orders
I was reflecting and researching for some time on how to achieve this without direct sql queries and in accordance with good woocommerce
Ad
Allow order to be fully editable while using a custom order status in WooCommerce
I have a bug with the edit quantity in an order while using a custom status. the edit arrow seems to have disappeared? is there another
Disable WooCommerce order email notification for orders with custom status
I have searched the web and checked the
query WooCommerce orders within a date range through a custom meta key
I have a meta_key called delivered_date, in date format, example 2021-05-13 16:01:26. if i must use
Show stock quantity per order item in a custom column on WooCommerce admin orders list
I'm trying to show stock remaining per product in a custom column on woocommerce admin orders list, without success. i would like to show
Show order downloads in admin new order email notification in WooCommerce
How can i include this "downloads" section (attached) in the admin email? by default, woocommerce only sends it to the customer, not the
Hide orders (table rows) in WooCommerce admin order list based on order status
I need to hide orders with a specific status in the woocommerce admin orders list. (wp-admin/edit.php?post_type=shop_order). css
Include order count from custom order status in WooCommerce admin menu
I have added a custom order status using this code in functions.php // register
Issue with action button in WooCommerce admin order list for custom order status
I have created custom order status "ready to dispatch" and custom action button as well. the problem and question is: when i have
Count number of orders *ordered* after an specific order ID in WooCommerce
We are trying to implement a prize for the 10th user ordering from the website. but it is not all time user orders. the
Adding prefix to WooCommerce order number based on user roles
I'm trying to change the woocommerce order prefix based on user roles, currently, this function work flawlessly : add_filter(
Display custom DOB fields in WooCommerce admin order edit pages
I've added this code to functions.php // hook in add_filter( 'woocommerce_checkout_fields' ,
Ad
Restrict use of coupon if customer have used related coupons in previous orders in WooCommerce
I am looking for a way, to limit coupon usage and to display an error message if a customer have used related coupons in previous orders before in
Update order status from custom statuses to completed in WooCommerce everyday at 23.00 if meta_key = Delivery Date and meta_value = this day
I am trying to make a function, that automaticly updates the post status to completed if the status is wc-ishoej-afhentning, wc-roskilde-afhent,
Add a custom meta field value to WooCommerce order if status changes to custom status
I have searched all over the internet. what i'm looking for is to create a custom woocommerce order field which will be automatically added to the
Display product thumbnail in new column in WooCommerce quick order preview window
How can i display the product thumbnail in a new column with a hyperlink to open the thumbnail in the new tab whenever i click on it?
Insert a custom total excluding products cost in WooCommerce order emails
I'm using the below function to add a custom total to the cart and checkout pages (taken from
Display product thumbnail in existing product column in WooCommerce quick order preview window
I'm trying to display woocommerce product thumbnail to woocommerce quick order window, i tried using 'woocommerce_admin_order_preview_end' and
Convert order total to default currency in Halk Bank Payment Gateway For Woocommerce
I'm using custom bank gateway that accept only "macedonian denar" "mkd" - currency. because i'm using 3 more currencies
How do I get order fee from existing foreach loop and use it as argument in WooCommerce
Since i already have access to the order id and the list of orders, how do i get access to each order fee from each each order? i have the
Woocommerce - how to display only on-hold orders using a shortcode
By default woocommerce orders table displays all available order status on the my account page which is
Woocommerce Show vendor Details such as Vendor Name, Store Name, Contact Details and Vendor Address (Dokan) in admin order details page
We want to show the store name, vendor name and vendor contact details from an order admin order details page. i'm using
Display private and customer admin notes in a custom column on WooCommerce admin orders list
Based on the answer by loictheazec on
Ad
Change WooCommerce order status to completed after a plugin is deactivated
I registred a shipped order status, if i deactivated the plugin, the order will be hidden. as an extra addition, it is the intention to
Add user meta data as order meta on WooCommerce order status change
I am trying to add a custom user meta field to the order meta data. and i want to add this when i am changing my order status to
Add an expiration date to WooCommerce orders based on order items count
I am trying to set expiration date functionality to my woocommerce shop. what i need is an automated system which sets an expiration date
Adding prefix to WooCommerce order number if order has items from a specific product category
In a webshop that can only have one item in the cart, i need to add a prefix to the order number when the order contains an item from a specific
Get variation attributes from order items in WooCommerce
I try to get the names of the variable product attributes names that is in the cart but something is wrong. i don't understand how i can get the
Display product thumbnails on WooCommerce My account orders list
I am trying to display product thumbnails on woocommerce my account > orders list, beside the order number. below is the screenshot of
Display in WooCommerce thankyou a custom field value based on a custom table
I have a code i have done to display custom field value on thank you page but it does not display the value. however i am able to display the
Get the Product ID in email template: WooCommerce
I am trying to add a column mentioning the id of the product purchased in the woocommerce mail template sent to the administrator. (admin / order)
Adding Product Custom Fields to WooCommerce Completed Order Emails
Is there any way that i can add some product custom field i create to include in woocommerce completed order email. i have created come
How do I delete orders from a cloned WooCommerce site?
I have used ns cloner to clone site within woocommerce. this has worked extremely well but the existing orders have been duplicated in the cloned
Ad
Add custom order meta data with price exluding tax in WooCommerce
I'm trying to create a custom meta_key in woocommerce_order_itemmeta table for (unit price excluding tax) to use
How to get custom fields values from WooCommerce orders
I have checked similar questions but couldn't resolve the problem. this is my code so far: // add vat and ssn fields in
Showing variation name in WooCommerce Admin Order list for each order
I have difficulties in showing variation name in the admin order list for each orders. i tried this code but it gives me an error :
WooCommerce admin order page - remove hyperlink on email and phone
I have tried to remove the hyperlinks on phone and email on woocommerce admin order page by adding code to functions.php there
How can I implode an array of item details for each order item in Woocommerce?
I am trying to pull line item data from the order and implode it in a specific format. it's only retrieving the details of the last item in the
Hook woocommerce_checkout_order_processed order items issue
I am working on a woocommerce project. i need to add some entry based on ordered item in my custom table. if user ordered 3 items then those 3
Add multiple custom columns to WooCommerce "My account" orders table
I am trying to add a few columns to the woocommerce > my account > orders page. so far the code below adds more than one column but
How to add "Local Pickup Plus pickup date" to a new column in WooCommerce admin order list
I am trying to add a column in woocommerce admin order list where the value from the pickup date from the plugin
Ad
Auto process paid orders instead of auto complete in WooCommerce
I have 2 payment gateways in woocommerce, cash on delivery and credit card. after the client sends the order with cash, i get the order
How to add the shipping zone name to a new column in WooCommerce admin order list
I want to show the shipping zone name on order overview in woocommerce. this shows the order overview
Add a custom field to an order in WooCommerce 3+
In woocommerce, i would like to add a new custom field to order details. i now that i can use use the code below to create a new custom field
Add an action button to WooCommerce "my account" orders according to product id
I have a woocommerce b2b shop, where i sell different types of products. for example, e-learning courses accessible by code redemption. i also
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
Dynamic custom order numbers based on payment method
I have the following code in my functions.php file: add_filter( 'woocommerce_order_number', 'change_woocommerce_order_number' );
Custom add to cart button for certain product IDs if product appears in WooCommerce completed orders
My previous question has been answered and i want to expand the answer further
Hide a custom action button on click displaying a text in WooCommerce admin orders list
I am creating woocommerce plugin to send order details via whatsapp. here is my plugin code add_filter(
Update custom order item meta in WooCommerce
I am missing something. i have seen several articles about how to update an items meta data but i can't get any one of them to work. i need to get
How to get product category ids from order items in WooCommerce
I am working on to get the categories of each product which is ordered using below code. function get_order_detail($order_id){
Sort fees by name on WooCommerce Orders and email notifications
I need to sort fees by name rather than the default by price in woocommerce orders. using
Ad
Display user description in WooCommerce admin order edit pages after billing address
I need to display customer bio in woocommerce admin order edit pages after the billing address. actually i only succeeded to display in a
Change add to cart button text + url to My account Order view page when customer has previously bought the product
The idea is to change the add to cart button text + url on woocommerce shop and archives pages and the single product page. the add to cart
Ad
Blog Categories
Ad