Search…
Installing VendorFuel
Signing up for a VendorFuel account
Getting Started
Support & Contact
Plugin
Dashboard
Catalog
Orders
Purchasing
Punchout
Customers
Reports
Accounting
Payments
Taxes
Shipping
Email
Template Editor
Admin Accounts
Settings
Changelog
API
Admin
Front End API
Alerts
Cart
Cart.add()
Cart.addBySku()
Cart.addItems()
Cart.addPromoCode()
Cart.checkout()
Cart.clear()
Cart.completeOrder()
Cart.confirmOrder()
Cart.deleteSaved()
Cart.fillDetails()
Cart.getSaved()
Cart.getSavedList()
Cart.getShippingMethods()
Cart.payfabricUrl()
Cart.priceAvailabilityResponse()
Cart.remove()
Cart.removePromoCode()
Cart.removeSavedItem()
Cart.save()
Cart.update()
Collections (service)
Favorites
Settings (API)
User
Utils
Templates
Account
Addresses
Cart
Catalog
Checkout
Favorites
Forgot Password
Group Account
Group Orders
Login
Order By SKU
Orders
Product Detail
Punchout Return
Register
Reset Password
Saved Cart
Saved Carts
View Order
Theme
Installing the VendorFuel theme
Powered By GitBook
Cart.update()
Updates the quantity of an item in the cart.

Parameters

Param
Type
Details
qty
number
Quantity to set for a specific product in cart. To add instead of changing the quantity, use Cart.add().
productId
number
Product ID.

Example

1
const qty = 5;
2
const productId = 1;
3
​
4
Cart.update(qty, productId)
5
.then(resolve => {
6
// Product quantity should be updated.
7
});
Copied!
Previous
Cart.save()
Next
Collections (service)
Last modified 1yr ago
Copy link
Contents
Parameters
Example