Ecommerce Cart Interaction with Barba.js

Hey all! trying to integrate barba.js into an e-commerce template site for a client. The Cart animation works fine on initial web load. After transitioning to new page the cart button doesn’t work unless the page is refreshed. Other webflow interactions work. Anybody have any idea on what I can do to fix this? Thanks


Here is my site Read-Only: LINK
([how to share your site Read-Only link][2])

1 Like

I’m also interested in hearing if there’s any solutions out there. Had the same problem trying to use Barba, and I couldn’t get anywhere with it.

The issue is that when you go to a different page, Barba doesn’t reload the scripts, so things like eCom don’t work properly until you refresh.

Hello friends, I see this still hasn’t been answered so here it is:

Webflow.require(‘commerce’) && Webflow.require(‘commerce’).init({siteId: “ENTER THE SITE ID”, apiUrl: “https://render.webflow.com”});

I can’t figure out where to add this code and how to adjust it to another project. Can you give some explanation, please?