Use cases

You can use the Boolean field to control almost every part of your theme template - from simple blocks of text to enabling/disabling scripts, etc. For example, you can use this field to show/hide information about sales for a particular product in your shop.

Setup

True value - String visible on switcher during edition. Default: True
False value - String visible on switcher during edition. Default: False

Example Usage

{% assign show_sale = product.metafields.airf.show_sale %}

{% if show_sale == "true" %}

    <p>This product is on sale!</p>

{% else %}

    <p>This product is not on sale at this moment</p>

{% endif %}