Overview
Shopify uses liquid files to develop themes with. There are several different ways you could create pages within Shopify, but we are going to just focus on creating a simple snippet you can put anywhere in the theme. For more information on how liquid
works, please take a look at Shopify Liquid documentation. All examples are based on the default Dawn
theme.
📄️ Initialization
To initialize the Recharge JavaScript SDK you will need to do it within the root of your theme (wherever the ` element is located). Generally this is located in a file called theme.liquid`.
📄️ Liquid Snippet
To initialize the Recharge JavaScript SDK you will need to do it within the root of your theme (wherever the ` element is located). Generally this is located in a file called theme.liquid`.
📄️ Customer Portal Link
To initialize the Recharge JavaScript SDK you will need to do it within the root of your theme (wherever the ` element is located). Generally this is located in a file called theme.liquid. For this example you will need to initialize your client with a Recharge storefrontAccessToken`.
📄️ Passwordless Login
To initialize the Recharge JavaScript SDK you will need to do it within the root of your theme (wherever the ` element is located). Generally this is located in a file called theme.liquid. For this example you will need to initialize your client with a Recharge storefrontAccessToken`.