ruby on rails - Edit liquid files programmatically
Can I edit in the .liquid files automatically in a shopify app instead of asking the shop owner to copy a code snippet into his template files.
Yes. Simply download the Liquid Asset into your App, modify the file as you see fit, and then upload the edited Asset back into the Shop.
Note that people will hate you for this as any mistakes you make are not easy to fix and when people uninstall your App, those edits persist, potentially breaking the shop.
So while you think you are being nice to your customers, you are treading dangerous turf.
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.