I have a few questions related to manipulating the shopping cart programmatically:
1) When I call $w("#cart").addToCart(), there is an animation that runs in which the cart sidebar opens up, and only then is the product added to the cart. Is there a way to disable this animation? 2) Is there a similar removeFromCart() function available?
3) Related to both the above, is it possible to manipulate objects in a cart directly from the backend? I tried to use getCurrentCart() and then add objects to the lineItems array list, but it doesn't seem to change the actual cart object. Thanks!
Hello.
It is not possible to disable the animation since customizing the cart page is currently not supported.
Currently, a function to remove and item from cart is not available.
Adding item fields to lineItems field of the Orders collection is not supported since the Wix Store orders collection has read-only permission.
Feel free to post your Feature Requests.
Good luck!