Url for vendor

From Shopify Wiki

Jump to: navigation, search

url_for_vendor(vendor)

This filter creates an url for a vendor name by URL-encoding it and adding the appropriate directory in front of it to make the url work.

{{ "International Business Machines Corporation" | url_for_vendor }}

The previous example would result in an output like this:

"/collections/vendors?q=International+Business+Machines+Corporation"

You will most likely want to use link_to_vendor instead.