Bundle Examples
To initialize the Recharge JavaScript SDK, you will need to do it within the root of your theme (wherever the <head>
element is located). Generally this tag is located in a file called theme.liquid.
Pre-requisites
Before using the SDK, make sure you have configured your bundle in the Recharge Bundle admin.
Overview
The object to represent a bundle looks like this:
{
"externalProductId": "7200062308549",
"externalVariantId": "41291293425861",
"selections": [
{
"collectionId": "285790863557",
"externalProductId": "7200062308549",
"externalVariantId": "41504991412421",
"quantity": 2
},
{
"collectionId": "288157827269",
"externalProductId": "7200061391045",
"externalVariantId": "41510929465541",
"quantity": 2
}
]
}