Shopify Customized Search using external services

試著忘記壹切 提交于 2019-12-07 14:51:26

Essentially my problem was to redirect user search queries to my service, and eventually render search results on user front end. To do that i have found the best way was to write a Shopify App.

Here is my solution:

1, build an App, host it somewhere maybe ngrok, install it on the store: (https://help.shopify.com/api/tutorials)

2, use proxy to redirect the /apps/mysearch to where the App is hosted: (https://help.shopify.com/api/tutorials/application-proxies)

3, in the store, show users a form where action="/apps/mysearch".

4, in the app process the form data, do whatever we want. Eventually return a view back to the store containing the search result, be sure to specify "Content-Type: application/liquid" inside of the app so that the returned view works with shopify theme.

Note that all of the search happens outside of Shopify.

I think you should do this with Option 1. Though its messy but it work and save your time. You can also hire an shopify developer ( like me ) for help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!