Add the stock status to Woocommerce Shop and Category pages

Posted by on Aug 7, 2014 in Blog, PHP, Themes, Woocommerce | 5 Comments

Woocommerce displays the Stock Status, for example ‘Out of stock’ or ‘6 in stock’ on the single product page. I needed to display the message on the Shop and Category pages. Also my client actually only wanted to display the status when a product was ‘Out of stock’ Thanks to Bryce from Woocommerce for help […]

Returning Arrays in PHP, a simple example

Posted by on Aug 7, 2014 in Blog, PHP, Themes, Wordpress | No Comments

This one is just a little post for myself really. It may be handy for someone else. WordPress will often store data in Array in PHP. When you go to return something back by name you just get the result ‘Array’ Not very helpful. First to create the array To return all of the items […]