I have a few questions related to manipulating the shopping cart programmatically:
- 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?
- Is there a similar removeFromCart() function available?
- 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!