How to put a custom button in every product page and charge page?

How to put a custom button in every product page and charge page?

FranRonga
Visitor
3 0 1

Hi there,

Im very new in shopify app development and im coding an app in nodejs+react that only comes with a simple button, but i only want that once the app is downloaded, the button will be in every product page and charge page right under the payments buttons.  

 

Any ideas?

Reply 1 (1)

mattbrown7531
Shopify Partner
3 0 3

To add the a button to the product page, you would have to add a Script Tag (https://shopify.dev/docs/admin-api/rest/reference/online-store/scripttag) when the user installs the application. Script Tags allow you to add custom JavaScript to shop. You would have to identify where to add the button by the html element attributes of the chosen store theme.

Founder, Notifi: Back in Stock Alerts