Hide Mini-Cart side panel

Hi,
I implemented a Cart Page and Product Page, with my own logic.
When I use the " addProductsToCart" API, the Mini-Cart side panel is automatically opened.
By code of course, is there a way not to auto-open the Mini-Cart?
Any suggestion is appreciated, I have no problem with coding.

Best regards,
Ammar

What addProductsToCart API? Please share your code code here in a code block.

Take a look at Wix Stores: Adding and Setting Up the Mini Cart for some configuration options.

let itemsToAdd = [
{
productID: ‘31ee74da-731b-9b03-4729-XXXXXX’,
quantity: 2,
options: {
“choices”: {
“Color”: ‘Red’,
“Frame Width”: ‘Wide’
},
“customTextFields”: [{
“title”: “Lenses”,
“value”: ‘SKULEN_001’
}]
}
}
];

await $w(’ #shoppingCartIcon ').addProductsToCart(itemsToAdd)
.then(() => {
// update code
})
.catch((error) => {
console.log(error);
});


using the “addProductsToCart” Corvid API is auto-opening the Mini-Cart side panel, which in our case, we want to prevent auto-opening, and customers can do the click on cart icon for viewing.

Thanks,
Ammar

@ammarbader Hmm. I’m not aware of a way to prevent the mini-cart from opening. You might want to request this as a new feature on t he Wishlist Page , the official platform for requesting new features.

@yisrael-wix Thanks Yisrael, I will.

As a short term, is there anything I can do to overcome this issue? work-arounds?

@ammarbader Hey Ammar, that’s what I was trying to figure out for your - if there was a work-around. I couldn’t figure it out.

Perhaps there’s someone here on the forum who has an idea.

@yisrael-wix Thanks Yisrael
Anyone has an idea? I will appreciate that, it is sort of a showstopper for us, as we already implemented the cart page and product page for our purposes, and mini-cart is a breach in case we keep it shown.

Anyone has an idea? I will appreciate that, it is sort of a showstopper for us, as we already implemented the cart page and product page for our purposes, and mini-cart is a breach in case we keep it shown.

Any one can help on that?