I know this is probably not your thing, but I have scanned the internet for 2 hours now and come up with nothing but dodgy plugins.
All I want to do is a add a piece of code to CSS or functions.php, that will allow me to choose a Variable Product in Woocommerce, as a “featured product’. Woocommerce’s default is that ‘Featured Products’ are the entire product, but I want the option to select a variation as the ‘Featured Product’.
I know you are not here to support Woocommerce, but am hoping maybe you have come across some code that will do this.
What i am desperately trying to avoid is adding a big fat plugin to weigh the website down.
Thanks for the advice, I get where you are coming from, but creating individual or fake product SKU’s will cause duplicate content as well as upset Google Merchant Center. As such the extra work required to fix these, out-weighs using a 14 tonne plugin, so alas a plug in it is.
Thanks for clearing that up for me though David. I could have spent days looking for a solution that does not exists.