Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

update item price in cart and refresh the cart #30

Closed
dotogether opened this Issue Nov 15, 2011 · 4 comments

Comments

Projects
None yet
2 participants

How can I change the price of an item in the cart via javascript and refresh the cart to reflect the changed price?

e.g. I tried PAYPAL.apps.MiniCart.products[i].product.amount = 10, but it does not appear in the cart visually.

Owner

jeffharrell commented Nov 17, 2011

This is a great feature request, but at the moment the Mini Cart doesn't support modification of the data after it's been added to the cart; all interactions with the data are either through a PayPal form binding or using the addToCart() method.

Let me look into what it would take to support this.

thanks. Yeah. An UpdateItem() api will be really useful.

Owner

jeffharrell commented Oct 31, 2013

Updating of product data and having the UI refreshed is available in the 3.0-alpha branch which is due out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment