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

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

The live shopping channel uses the same shop identity (window.videowiseInfo.shop / window.Shopify.shop). Add the channel embed script and either the monolith container or modular section mounts:
Or split the page into sections with your own HTML between mounts. See Live channel page layout.