Shopify - Setup Liquid Template (for suppliers)

Step 1: Login to shopify admin.  Go to Online Store.

Screen_Shot_2017-09-28_at_1.49.49_PM.png

Step 2: Go to Themes

Screen_Shot_2017-09-28_at_1.49.54_PM.png

Step 3: Click on the ‘…’ next to Customize Theme and choose Edit HTML/CSS.

Screen_Shot_2017-09-28_at_1.50.15_PM.png

Step 4: Click “Add a new template"

Screen_Shot_2017-09-28_at_1.50.21_PM.png

Step 5: Select “search” and call it “json”

Screen_Shot_2017-09-28_at_1.50.28_PM.png

Step 6: Select the newly created template.  Erase the default code from your newly created template.  Then copy/paste the code below.  Then click Save.

Screen_Shot_2017-09-28_at_1.50.34_PM.png

{%- layout none -%}

{%- paginate search.results by 250 -%}

{%- if search.performed -%}

{"products": [

{%- for item in search.results -%}

{%- unless item.object_type == 'product' -%}{%- continue -%}{%- endunless -%}

{{- item | json -}}

{%- unless forloop.last %},{% endunless -%}

{%- endfor -%}

]}

{%- endif -%}

{%- endpaginate -%}

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk