WooCommerce hide order item meta from front end (not admin)

I have a couple of order item meta details that I would not like the customer to see (on the view orders page under account info). I have found a filter that will remove this data from the ADMIN (…

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

I want add a custom Button “View Demo” next to “Add to Cart” button of WooCommerce based on Product Type, both on main shop page and single product page. I’ve done this steps: Add code to theme file …

WooCommerce: Set country by default in checkout page

I am using WooCommerce in my Wordpress web site. The customers billing and shipping details are populated by default on checkout page. I want that the country will not be set by default. Instead it …

WooCommerce add order note to orderCompleted email

I am at my wits end here and have tried every solution I could find online for days and nothing works. The worst part is the problem should be solvable in about 4 lines of code but it just isn’t …

Removing the (0) on the WooCommerce Reviews Tab

I’ve succeeding in removing the (0) on the Reviews tab heading when there is no reviews. In marketing – it’s probably best practice to not show that a product has 0 reviews. Here is the code that I …

WooCommerce shipping price INCLUSIVE tax

In WooCommerce I can only enter the shipping price excluding tax. How can I make the given price including tax? The settings to show ‘prices including tax’ only applies to the products. So for …

how to delete completed orders in woocommerce using a my sql query

I want to delete completed all orders in woocommerce by using a single my sql query. Because, I’m having a problem with my WordPress Dashboard. I can’t view the completed orders from the back-end. It’…

If cart is empty, the cart page will redirect to shop page in WooCommerce?

In WooCommerce, I want to redirect the cart page to shop page when the cart page is empty otherwise shows the cart page. Can anyone have the solution ? Here is the code I have tried, but it does not …

Merging a general wordpress search with a woocommerce product search?

I am using the following two codes to generate a wordpress search and a woo commerce product search? Is there a code to merge theme into one search bar doing both functions? <?php …