Subify SDK
  • Subify SDK for developers
    • Loading SDK
    • `subifySDK` Object Methods
      • renderWidget(product, configs)
      • changeVariant(targetProductId, selectedVariantId)
    • Events
Powered by GitBook
On this page
  1. Subify SDK for developers

Loading SDK

Subify SDK is automatically loaded if the Subify app embed block is enabled in your theme. However, if you are using a non-standard Shopify theme (such as a headless theme) or the app embed block is disabled, you should load the SDK manually with a script tag like below:

<!-- load subify sdk -->
<script src="https://cdn.hengam.io/subify/subify-sdk.js" defer></script>

Once the SDK is loaded successfully, a subifySDK object will be added to the window object, which contains methods to work with the SDK.

PreviousSubify SDK for developersNext`subifySDK` Object Methods

Last updated 1 year ago