Skip to main content
Integrating Videowise on custom platforms has two parts:
  1. Script initialization — adding Videowise scripts to your website
  2. Widget locations — setting where you want widgets to appear
This guide covers script setup via window.videowiseInfo, and how to handle add-to-cart on headless or custom storefronts. For Shopify Online Store, the Videowise app injects scripts for you — skip to custom events or widget re-rendering only if you need them.
Use window.videowiseInfo on all non-Shopify platforms (SFCC, Magento, WooCommerce) and on headless Shopify.

Setting up videowiseInfo

Minimum implementation

To add scripts to your website, insert the following code before the closing </head> tag:

Populating videowiseInfo correctly

forceDomain

By default, live shopping Shopify Ajax calls (/products/{handle}.js, /cart/add.js, /cart.json) use relative URLs, so they hit the current page origin. On headless or custom domains that origin may not serve Shopify Ajax. Set forceDomain: true on window.videowiseInfo before the live shopping script so those requests go to https://{videowiseInfo.host || videowiseInfo.shop} instead:
The player copies this flag into the live iframe with the rest of videowiseInfo. It is also on automatically in the React Native webview and Videowise preview. Absolute URLs already passed into the player are left unchanged.

Full structure for window.videowiseInfo

Handling add to cart

In most headless setups, add-to-cart is handled by custom logic — not only adding the item, but also opening a cart drawer, showing notifications, or updating UI. Because of this variability, Videowise does not perform the add-to-cart action directly. Instead, Videowise emits custom browser events that your application can listen for and handle with your own logic. The full widget event list is in Custom events. To enable this, set Buy button behaviour to Virtual cart in: Widget → Player design → Buy button
Buy button behaviour set to Virtual cart

Custom event: videowiseProductAddToCart

When a user clicks Add to Cart inside the Videowise widget, a videowiseProductAddToCart event is dispatched. Product details are available on event.detail:
  • variantId — the Shopify variant ID
  • qty — the selected quantity
Listen for the event and run your own add-to-cart logic:
To close the Videowise player after a custom add-to-cart action, dispatch videowiseTriggerPlayerClose:

Hydrogen-specific notes

  • Before rendering, set pid on window.videowiseInfo to the product ID.
  • When navigating away from a product page, set pid to null.
  • After client-side navigation, re-render widgets with initVideowise / initVideowiseBulk.

Live shopping channel on custom platforms

If window.videowiseInfo is not already on the page, set at least the fields below before the channel script. Without shop identity, the channel mounts but live / upcoming / past lists stay empty.
Or split the page into sections with your own HTML between mounts. See Live channel page layout — including minimum videowiseInfo and filtering by host.