Initialization
Get Started
To implement custom solutions using TryNow's exposed methods, the API must be initialized on the active window. The TryNow API is provided as a JavaScript object stored on the active window. Upon successful initialization, the window.trynow.initialized
property is set to true
.
Automatic Initialization
The TryNow API is automatically initialized when using the TryNow Shopify App Blocks. To enable this:
- Open the Shopify Theme Customizer
- Turn on the "Enable Try Before You Buy" App Embed Block
Once enabled, window.trynow
will be available for use.
Manual Initialization
Currently, manual initialization is not supported for custom and headless storefronts that are incompatible with App Embeds.
Note: For questions about headless integrations, please contact TryNow Support.
Updated 8 days ago
Check out what you need to ensure you can utilize our app blocks if you are using a Shopify theme.