-
-
Save stvnrynlds/21461c1d6a4b8124d53428cf2b5e5157 to your computer and use it in GitHub Desktop.
Great job, thanks!
Now this page acts more like a real API. Once you create a page with this layout (e.g., example.com/pages/menus
):
- Hitting it directly will give you an array of available handles:
example.com/pages/menus
- Supplying a handle name will return that linklist:
example.com/pages/menus/handle
- Supplying multiple handles separated by '+' will give you an array of linklists requested:
example.com/pages/menus/handle1+handle2
This is so helpful, thanks!
Thanks!
This is awesome!
Thank you very much
@arthurcruzd Glad it’s helpful! I’m not keeping this up to date with any Shopify Liquid changes so you may need to test it out for yourself. Let me know how you use it!
@arthurcruzd Glad it’s helpful! I’m not keeping this up to date with any Shopify Liquid changes so you may need to test it out for yourself. Let me know how you use it!
@stvnrynlds
This is so helpful, thanks!
But I cant accest url of shop look like restAPI, please tell me how. Thanks!!!
https://{user}:{pass}@{mystore}.myshopify.com/pages/menu-api/category-menu -> this is go to page write password of store
Added hash for quickly getting index by handle (e.g.,
menus[menusHash['main-menu']]
).