Hide Mini Cart when using addToCart( )

Is it possible to hide the Minicart from opening every time an add to cart button is clicked on a repeater page ? Surely this should be simple to allow us to do with code but I can’t seem to find any info on what the element #minicart is to hide.

5 Likes

I second this.

1 Like

Hi,

'Add To Cart ’ button is part of a close component, as a result you can’t add events and changed the functionality of this button.

Best,
Sapir

Is there an alternative way to add a product to the user’s cart? Without utilizing the ‘CartIcon’ element?

Hi,

If you wish to use the wix store app you can’t change any functionality,
If it’s a problem for you can always try building your own store by code.

Best,
Sapir

Hi Sapir, I have made my own store from code and it still displays the mini cart every time the custom coded button (which adds to cart) is clicked.

You’d likely have to use wix-payments if you wanted to completely circumvent the built-in cart.

As with everything in Wix, the ease of use comes with compromises. Hopefully little things like this will change over time.

Sad to see any decent answer was provided here so far… I am facing the same issue.

I tried using addProductsToCart() instead, but it has the same behavior.

1 Like