How to Override WooCommerce Template Files
WooCommerce has been designed in such a way that most aspects of the popular eCommerce plugin can safely modified in WordPress. But unless you’re a … Read More
WooCommerce has been designed in such a way that most aspects of the popular eCommerce plugin can safely modified in WordPress. But unless you’re a … Read More
In this tutorial, we’re going to look at how to add code – such as a javascript file or inline CSS – to all pages, to a single page, to the header and to the footer. Sure, there are plugins that will do this for you, but this is a far more elegant solution.
WooCommerce contains a number of hooks so that developers can extend the features and functionality of the plugin programmatically. In this example, we use an action hook to call a function when an order status is changed to “completed”.
If you’re using a child theme with your premium WordPress theme (and you should be!) you might be struggling with adding code to your functions.php file. Removing “Related Products” from a WooCommerce single product page gives us the perfect opportunity to explore this.