Fetching a list of some or all of your WooCommerce products and displaying them on a page is easy. It involves a simple WordPress Query which is used to fetch…
Latest
How to programatically create a new order in WooCommerce
Ever needed to make a WooCommerce order without using the online store? It’s actually quite simple to create a WooCommerce order programatically using code on the backend, and in this…
Change the WooCommerce “Add To Cart” text
Do you need to change the text that displays on the WooCommerce “Add To Cart” button? We needed to recently and in this snippet, we will show you exactly how…
How to get a WooCommerce product’s link, title and data from the product slug
When building out a WooCommerce store, there are often times where you have the slug for a WooCommerce product in your code, and you need to fetch the actual product…
WooCommerce display FREE if price is zero ($0.00) or not set
Do you need to replace the default WooCommerce pricing label for a free product? Perhaps you offer some, if not all, of your products at no cost. Instead of showing…
Set a margin in PhpStorm to wrap DocBlock comments
Since we do a lot of WordPress development work and like to keep our code well documented, we follow the WordPress guide lines on how to write our documentation using…
How to register, enqueue and localize Javascript in WordPress
In this video I show you how to register, enqueue and localize Javascript in WordPress – the right way! It’s actually really easy once you know how.