On a certain product type or collection, if you click on a variant that has 0 for inventory, I want to show a custom button vs “coming soon” which is the default in the language file.
I’ve tried
if collection.handle == 'example' ... or if product.type == "ABC"
But I’m guessing when you click on a variant it does not do any checks for that, only on page load? So do i need to find the code that is executed when clicking a variant option - if, so where would that be?
Any help would be appreciated!
