It is likely our client will ask for some customization in the cart drawer, for example, adding some checkbox, link or simply extra information.
I understand that the drawer is somehow “special“ and that JS injection is one of the ways to achieve modifications.
Am I right here? I’m fairly new to Shopify and I still don’t understand most of the stuff related to themes.
Are there other ways to customize or do rather minor changes to the cart drawer? Any documentation related to it?
Hi Pablo!
The answer to your question depends on your client’s cart drawer.
Is it from an app or the theme?
If it’s from an app, they would need to reach out to the app for assistance. You can try JS injection, but there are chances your changes may conflict with the app when they make updates.
If not, then it’s coming directly from the theme. For minor edits such as a link or checkbox, you can simply edit the cart drawer’s HTML and Liquid in the theme.
Every theme is different so I’m not able to provide any specific guidance, but to get started I recommend checking out our dev docs on themes.
Thank you very much for the answer. It clarifies pretty much what I needed to understand.
1 Like