How To Detect Product Profile

Follow

Comments

3 comments

  • Avatar
    Zetya Support

    Currently that isn't available. How are you thinking of using it if it was available? We could potentially tag products with the profile automatically.

  • Avatar
    Info

    We sell products and services that fit most of those profiles, so I'm just wanting to adjust our booking form and product page depending on which profile the current product belongs to.

  • Avatar
    Zetya Support

    I'd suggest you use Shopify product tags for now. In your booking-form snippet show different fields depending on the tags. E.g.

    {% if product.tags contains 'Class' %}

    ... show scheduled time widget here ...

    {% endif %}

    {% if product.tags contains 'Activity' %}

    ... show opening hours widget here ...

    {% endif %}

     

     

     

Please sign in to leave a comment.