How can Ajax cart slider interfere with upsell popup app?

Hi everyone! We have an app that hosts an upsell popup and also an embed in the product page. Recently, we had a cart slider built using Ajax which interferes with how it works.

The app has been fantastic for us in the past but unfortunately, they believe they’re incompatible with our new slider.

Does anyone know what this interference would be? This was their response.

Screen Shot 2022-05-27 at 1.43.41 PM.png

Hi @maddie_teez ,

The upsell and ajax cart does not communicate. The reasons that I can think of are the following:

  1. The upsell app uses a fetch in the url “/cart”.

Since your ajax cart is a side bar, there is no way for them to check the “/cart” url, unless you pass the function to the upsell app.

  1. The upsell app needs to refresh the browser for them to get the cart.js information.

Your ajax cart does not need refreshing and just call the function by triggers.

My advice is to create an upsell. You should have an idea how since you built the ajax cart. It is the same logic.