liquid - Alter header content type in Shopify
I'm using an external form to add an item to Shopify's cart from a remote page (a mobile app). When this form gets submitted, Shopify redirects you to a page you can set. I created a page called item added that simply returns to all the items currently in the cart in JSON. The idea is that my mobile app will read this JSON response and handle it.
I don't know how to set the header content type in oder for my library on the app side to handle the response (I am using RESTKIT). In php its really easy.
My question is if I can do this in Liquid Markup. And if not, are their any other solutions to my problem?
Shopify is a fully hosted SAAS service. There's some deep server side pieces you're not allowed to modify/alter. Those are (as of today): robots.txt, sitemap.xml, http headers among others.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.