Navigating to a URL when a product card is clicked

Learn how to open a URL when a product card is clicked instead of adding the item to the shopping cart.

You can overwrite the default checkout behavior and open a URL to any page on your website as soon as a customer clicks on a product card inside the Flux Panda Player in Widget Mode or Standalone Mode.

To do this you have to configure your channel to use the external checkout and set the method to "Product Link".

The Flux Panda Player in Standalone Mode will now open the link specified in the product.

For the Flux Panda Player in Widget Mode you can listen to the "product-card-click" event, inside the onEvent handler

FluxPlayer.init({
    onEvent: async function (eventName, eventData) {
      switch (eventName) {
        case "product-card-click":
          FluxPlayer.updateLocation("/new-url");
          break;
        default:
          break;
      }
    }
});