Custom Suggest.json from Search Template

Shopify Partner
7 0 0

I'm trying to create a custom predictive search by creating a search template with {% layout none %} at the top and generating a json from the search responses. But I can't get the template to load.


This is my search.suggest.liquid template, I know it's not going to return any search results but I just want to display something for now and I'll work on turning it into a json response later.



{% layout none %}
    <p>Hellow World</p>



When I try to use this search with the following url




I get the following response.



Invalid parameter error: Missing section_id param



I've tried setting section_id to 1 which gives a different error



Section not found: Section id `1` was not found in the theme



Any ideas how I can proceed?





Replies 0 (0)