How to Setup WooCommerce Bulk Discounts and Promotions

Are you looking to set up bulk discounts for your customer’s in your WooCommerce store? In this article, we’ll take a look at the various options you have for setting up discounts and promotions. Out of the box, WooCommerce doesn’t provide any discount functionality, so you’ll need to either write some code snippets or install a plug-in … Read more

How to Hide a Category from the Shop Page in Woocommerce

By default, the shop page in Woocommerce will show products from all categories, but if you want to prevent a category from being shown altogether, or from specific customers what steps can you take? Hiding A Category With a Snippet Here’s a snippet that will hide specific categories from the shop page. add_filter( ‘woocommerce_product_query_tax_query’, ‘hwn_hide_shop_categories’); function … Read more

Setting up a Woocommerce Development Environment with Local by Flywheel and Visual Studio Code

In this article, we’re going to take a look at how to set-up a development environment for Woocommerce, by the time we’ve finished we should have an environment that will allow us to – Quickly spin up a fresh Woocommerce site that includes test data Edit code productively using an IDE Step through code using a debugger … Read more

A Beginners Guide to Attributes in Woocommerce

Although Woocommerce uses categories like a normal WordPress blog, it also adds the concept of attributes that can give you and your users finer control when categorizing and searching for products. In this article, we’ll take a look at how to set attributes up and what you might use them for. We’ll also take a look at … Read more

How to remove “Sticky Add-To-Cart” and “Product Pagination” from the Storefront Woocommerce Theme

What are “Sticky Add-To-Cart” and “Product Pagination”? Hmmm, they’re not all that easy to describe. If you go to the single product page in the Storefront child theme you’ll see some floating images towards the far right and left of the screen, they look like this. If you hover over one of the images then … Read more

do_action and add_action in Woocommerce and WordPress

It’s quite hard to give an easy to understand definition of what do_action and add_action do, so I’m just going to launch straight into some code and hopefully, the purpose of the two methods will become clear reasonably quickly. Here’s a very simple example of do_action do_action(“display_some_numbers”); If we add the code above to a … Read more

How To Read And Write To Google Sheets With c#

I use Google Sheets a lot, they’re handy and useful and it’s nice to have something that allows you to start entering data in a place that’s always accessible. The share-ability is also a big plus. From time to time I’ve wanted to either access data on a Google sheet or enter data onto a … Read more

How to Create a Simple WordPress Plugin

Creating a WordPress Plugin might seem like a complicated task, but it can be done in a few simple steps. Here’s how. In your WordPress directory create a new directory under the “wp-content” -> “plugins” directory. In the example above I’ve created a directory named “hwn-text-replacer”, once a directory has been created we need to … Read more