i want to make order totals go under a calculation formula. i have drivers whom salary is per order. they deliver paid and unpaid orders. so They collect unpaid cod payments from the customers.At the …
Tag: orders
Check if there is 24 hours gone since a Woocommerce order is made
I call a Woocommerce method $order->get_date_created() that is returning this WC_DateTime object: How can I check if there is more (or less) than 24 hours are gone since the order is made? Answer Here is the way to check if there is more (or less) than 24 hours passed since an order has been created, using WC_DateTime and DateTime methods
Add products thumbnail to Woocommerce admin orders list
I would like to add futured image on admin view order pages in Woocommerce. New Column created, but the product image does not appear. What should I do to show the order thumbnail? Thanks. Answer Beware, as orders can have many products (many order items) and in this cas you will have many images (also it will weigh down the
Display last WooCommerce admin order note in customers order history
I am looking to display the last Order Note, currently only viewable via Admin in Woocommerce, on the customer side in their Order History. So they can view the tracking number we add in after the …
Change default WooCommerce order status to processing for cheque and bacs payments
In WooCommerce, I need all my orders to go immediately to “processing” status to have the order-processing email sent directly when the order is processed. By default, this behavior exist for Paypal and COD orders, but not for BACS and Cheque where the default status is on-hold. I tried several snippets like this one: But this doesn’t work, the order
Disable specific payment methods depending on Woocommerce order status
I made a two-step payment on the site. Payment occurs after confirmation of the order by the manager. First, the user selects the payment method “for confirmation”(renamed “cash on delivery”) and pay only after receiving the invoice for payment. On the checkout page, I hide paypal via js. I would like paypal to be hidden when on-hold status. When the
Remove duplicated imported orders in Woocommerce
I have duplicate orders in Woocommerce and I would like to delete them to only keep unique for clean bookkeeping. I am not good at SQL, I wrote this request but it lists both duplicate when there is a duplicate. which gives me 307 results. How can I write the right request to delete the duplicates and only keep unique
Add a column with coupons used on admin Orders list in Woocommerce
I am trying to display the coupon(s) used directly on the order admin screen (where all orders are listed in WooCommerce) but for some reason it’s giving me a fatal error because of the break. Here is the code -> Any ideas on how to fix this would be very much appreciated. Answer There is some errors and mistakes in
Add customer email and phone in “Order” column to admin orders list on Woocommerce
I am trying to find a way on how to add the customer phone and email below the name on the WooCommerce order view. See picture for reference where I need to add this information. Any ideas, tips or …
Filter out unwanted order item meta data from Woocommerce email notifications
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 the wc-template-functions.php file (line number 3011). I am copying the function code below for reference The problem is: it doesn’t take any arguments that can help me filter out item data that I