Refresh Theme - Custom cart button text based on tag/metafield

Hi there!

i want to use the following added elements as text for the add to cart button based on tags/metafield values. It is not getting to work when i add a if clause to the card-product.liquid. Am i missing something here?

Found it in buy-buttons.liquid