With WooCommerce, I have faced a problem on my code below: I have tried skip specific category from my loop. Product has been skipped but some remaining products are showing multiple times: How can I avoid this item name repetition on this loop? Answer The variable $product_cat_id is not defined in your code, so your if statement is always true.
Tag: orders
Change WooCommerce thankyou page title based on order status
Attempting to change the title of the thank you page based on specific order statuses, by combining a filter and action as follows: but I have tried multiple ways to combine the two and without any success. Answer You can use the following to change “Order received” page title based on order statuses: Code goes in functions.php file of the
Updating WordPress account email with WooCommerce billing email after checkout
I need update WordPress account email with woocommerce billing email after successful checkouts. I used this code but it does not work : Am I used an outdated code? Answer There are some mistakes. Try the following instead: Code goes in functions.php file of the active child theme (or active theme). It should work. Note: When changing user email, WordPress
Save WooCommerce order total volume as a custom field for Shipstation
I’ve been coding a WP plugin for Calculating the square inch total volume for an order and send it via custom field to Shipstation: I uploaded it via SFTP to the sites files and it shows up on WP but when I click activate I get a fatal error: Fatal error: Uncaught Error: Call to a member function get_cart() on
WooCommerce: Add Custom order statuses with custom email notifications
Using Add a new order status that Send an email notification in WooCommerce 4+ answer code, I have been able to get an email notification for ONE custom status however cannot get my head around how I would go about being able to send the email notification for BOTH custom statuses. See below the example codes & The code I
Display a custom delivery notice on WooCommerce orders and email notifications
With the following code I display a custom message on WooCommerce checkout page. When a customer places an order on a Saturday and Sunday, the order will be delivered on the next Monday. If a customer …
Display vendor store-name (Dokan) on WooCommerce admin order preview
We add vendor information in the admin order details for each order via: WooCommerce show vendor store-name (Dokan) in admin order details overview Now I also want to add this information also in the order preview. I found this answer Display custom data on Woocommerce admin order preview We change the hook to woocommerce_admin_order_preview_end but now when we want to
Change order item custom meta data displayed label and value in WooCommerce Admin orders
In the Woocommerce admin screen, I’m attempting to use the order line meta data to display a button which will open up a new window with the URL of the dropship supplier. I have successfully pulled the supplier URL from the product on order and pushed it to the order line item. I am able to change the meta data
Display a product custom field only in WooCommerce Admin single orders
This question follows How to show a product custom field (custom SKU) in WooCommerce orders answer to my previous question. How do I make a product custom field articleid (custom SKU) to be visible only in Admin Order edit pages for each order item? Also, it does not work for manual orders. How to display a product custom field articleid
How to show a product custom field (custom SKU) in WooCommerce orders
Is there a way to display my custom SKU under each product on the WooCommerce order page? The custom sku displays fine when I edit the product, but it does not display in the order page for the product. I need this information to show on the order so that Zapier can match it with the Visma Account Software ArticleID