Main cart does not function when adding products in main cart and remove all itemsicon does not work

Hello I am having trouble getting the main cart to work. When you press the trashcan or try to remove a product or quantity of a product it does not work, and does not update the price.

URL:https://cavinhus.dk/cart

Key: auskay

@CAVinhus cart.js file has the issue, I recommend to contact theme support so they can remove this javascript conflict

Hey @CAVinhus ,

Hope you are doing great. In order to fix this issue required to do the custom code in your theme file.

Would you like to share the store collab code in the p/m so that I can take a look and provide you with the solution code.

Thanks

I have been in contact with support for 45 min now they have only said that I should either get a professional or start over.

Yes, the only solution is left to hire a Developer.

Would you like to share the store collab code in the p/m so that I can fix the issue.

Thanks

Are you using an app or something. Something might be interfering. From what see the endpoint is not correct

Shadab_dev_0-1751821781569.png

You see undefined in the url, this should be add.js on addition and and delete on clicking the bin icon but its not hitting the right endpoint and so it does change anything in the databse and you dont get the desired result. Either its some app code clashing or a bug in the code.

Let’s start from this – look at your layout/theme.liquid around here: https://github.com/Shopify/dawn/blob/01f82255731408924c69021fa6eed406c6c4bf26/layout/theme.liquid#L366

The line should be , but in your code ist and then some CSS code which is not wrapped with ..:

window.accessibilityStrings = {
        ...
      };

  #shopify-section-template--14512031662128__banner .tw-align-middle {
    vertical-align: bottom!important;
}

Because of this the browser ignores this entire block of code which sets some Javascript variables important for the theme.

Sort this first, at least like this:

window.accessibilityStrings = {
        ...
      };