Created
May 25, 2016 08:15
-
-
Save davelowensohn/5ff10657a1626753ed49fc45dc6c3d7b to your computer and use it in GitHub Desktop.
Shopify semi-automatic vendor collections
This file contains 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
{% assign product_vendor_handle = product.vendor | handle %} | |
{% if collections[product_vendor_handle].handle == product_vendor_handle %} | |
{% assign vendor_url = collections[product_vendor_handle].url %} | |
{% else %} | |
{% assign vendor_url = product.vendor | url_for_vendor %} | |
{% endif %} | |
<div id="product-vendor"><span class="product-vendor">{{ product.vendor | link_to: vendor_url }}</span></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment