Created
December 28, 2018 17:00
-
-
Save odessy/ed63437f1363882e47307e9eaa8ed757 to your computer and use it in GitHub Desktop.
check option value size for https://help.groupthought.com/article/346-add-more-colors-available-message-in-collection-grid-listings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% unless product.has_only_default_variant %} | |
{% for option in product.options_with_values %} | |
{% assign downcased_option = option.name | downcase %} | |
{% if downcased_option contains 'color' or downcased_option contains 'colour' %} | |
{% if option.values.size > 1 %} | |
{% assign is_color = true %} | |
More {{ option.name }}s | |
{% endif %} | |
{% endif %} | |
{% endfor %} | |
{% endunless %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment