I added ADD TO CART button.
but when I click it is shows mini cart on the left. I do not want that.
I want it to go directly to checkout page,
how can I do this?
Wix Stores have their own support pages that you can read
https://support.wix.com/en/wix-stores/setting-up-your-store
https://support.wix.com/en/article/adding-a-shopping-cart-icon-in-wix-stores
https://support.wix.com/en/article/customizing-your-wix-stores-mini-cart-and-shopping-cart-icon
Otherwise, you are better suited contacting Wix Support themselves.
https://support.wix.com/en/article/contacting-wix-support
@GOS What if you’re using Corvid to add to cart? I’ve turned off minicart in the shoppingcarticon, but it still opens the minicart on .addProductsToCart()
ive sort of got round it using wixLocation.to() but the mini cart still shows for a second or so.
what do you suggest?
Thanks
I have the same problem. Using the addToCart() function followed by a wixLocation.to() function. Works, but it’s ugly since the mini cart still shows for a couple of seconds…
Try:
Promise.all([
$w('#cartIcon').addToCart('fgfggh-guyjyh-jjkkjk-jkggh'),
wixLocation.to('/location')
])
I am not sure if this approach would work well. For example, take the case where the addToCart() function fails. In this case, using Promise.all(), wixLocation.tio() is going to run and the user will get redirected even though the addToCart() function failed. So, this approach would leave no space for error handling.
You can write code to redirect back or to popup a notification in case of failure.
And if you have a premium account and never eant to see the mini-cart, you can hide the mini-cart by adding a spinet to the trqacking&analytics section (on the dashboard) with css :
Use ctrl +shift + i to find the id of the mini-cart container.
<style>
#minicartcontainerID {
display: none;
}
</style>
thats is what I want too… I think that dont have how to do it… PLEASE WIX! HELP THIS! THIS IS BASIC!
I also want to this and also a small alert message that it is added to cart which even displays on screen when scrolled for 2 to 8 secs
You can disable the mini cart part. Have you looked into the settings of the Wix stores elements? You can control whether stay on the same page / open mini cart / go to checkout page.