- Method 2: Global Block + Liquid Snippet
genlook-cabin-config Reference
The genlook-cabin-config script tag is a JSON object that the SDK reads on initialization. When using Method 1, the Genlook Widget block generates this automatically from the Theme Editor settings. When using Method 2, you provide it manually.
Options
Eagerly load the widget JavaScript in the background when the page loads. When
true, the first open() call is near-instant. When false or omitted, the widget JS is loaded on-demand when open() is first called - still fully functional, just slightly slower on first open.Display a counter inside the widget showing how many try-on generations the visitor has left for the current period (daily or weekly).
Grammatical gender for languages like Hebrew and Arabic that have gendered grammar. Accepted values:
"default", "male", "female".Visual theming for the widget modal.
Override the default text shown inside the widget.
Setting
preload to false does not disable the widget. You can always call Genlook.cabin.open() regardless of the preload setting - the SDK will lazy-load the widget automatically.SDK Reference
Genlook.cabin.preload
Type: boolean
Indicates whether the widget JS was eagerly loaded on page initialization. This reflects the preload value from the genlook-cabin-config JSON.
Genlook.cabin.open()
Opens the try-on widget modal. If the widget JS hasn’t been loaded yet, it is automatically fetched, and the modal opens as soon as it’s ready.
Genlook.cabin.fetch(url, options)
Performs an authenticated fetch request through the Shopify app proxy. Use this helper for all endpoint calls if you need to make direct API requests without handling the proxy path yourself.
/apps/proxy_genlook-x/public) is prepended automatically.
Next Steps
- Want to abandon the pre-built modal and build a completely custom UI? See the Full Custom Flow.


