This is fantastic. I have been working on something for days, and this might be the key to it all, so thank you. Could this be added to a templaet file instead of within my functions.php file? I’ve tried a few options and can;t get that to work. Any idea what template I coudl add this to? variations.php or variation-add-to-cart-button seem liek the likely candidates, but no dice.