Created
December 1, 2014 20:25
-
-
Save darryn/62ba7974128b6f822266 to your computer and use it in GitHub Desktop.
Shopify - Typeahead with price
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
<input id="search-input" name="q" type="text" class="search-query" placeholder="{{ 'general.search.search_button' | t }}" data-provide="typeahead" data-source="[{% for product in collections[settings.typeahead_collection].products %}"{{ product.title }} - {{ product.price | money | strip_html }}"{% unless forloop.last %},{% endunless %}{% endfor %}]" autocomplete="off"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment