It is my first experience with Shopify app development. I am creating a public embedded app.
This is how far its okay:
A "test merchant" can successfully install it and see their products in embedded app. I also have edited theme of merchant's store manually and created a button on products page which on click navigate/redirect customer to some other website to perform action which in return give him discount code.
What i do not understand:
Now I want to build functionality in my public app so that any merchant who installs app on store, can add that button to their theme with a single click or a button is automatically created on their products page.
I am not even sure if this is possible or not. I tried to find stuff related this in docs but am bit lost. Would be great if you could point me what docs should I read or how I can achieve this. Any code sample would greatly be appreciated.
Solved! Go to the solution
- Use a modal/position:fixed, so you don't need to worry about placement, but that wont be a great UX.
- Provide the merchant with installation instructions (so they can position the button).
- Offer to install the button for the merchant (so you can position the button).