True or False Metafield

Setup a true or false metafield and show and hide content based on its value.

You can choose to create a custom content section in your themes customiser if it has that option, or add it to your required template file.

{% if product.metafields.my_fields.exampletruefalsename == true %}

   <!-- Insert your content to be shown here-->

{% endif %}

Leave a Reply

Your email address will not be published. Required fields are marked *

Get In Touch

Have a question? or perhaps spotted a problem?
Maybe you have something you would like to add. Drop us a line anytime!