Url for vendor

From Shopify Wiki

Jump to: navigation, search

url_for_vendor(vendor)

This filter creates an url for a vendor name by transforming it to a handle 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/vendor?q=International+Business+Machines+Corporation"

You will most likely want to use link_to_vendor instead or otherwise use this output in another filter like link_to.

Personal tools