A solution is no longer needed, thanks.
Al.
Hi NVD,
Using WooCommerce I’m trying to build something with exactly the same functionality as what you’ve created. I’m a novice at this kind of thing, so I’ve copied your code and pasted it onto the bottom of my theme’s functions.php file. Unfortunately your code hasn’t produced any changes. (I’m using Themeco’s X with a Child theme, the code has been pasted on the main functions.php file, not the Child theme file).
On my ‘Product’ settings I’ve set certain variables to be ‘out of stock’, is there anything else I’ve missed? (Sorry for my ignorance on such matters!, any help would be appreciated).
Al.