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
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
Details of the VendorFuel API Cart service.
Properties
Bolded
properties are currently used in templates.
Property
Type
Details
county
​
​
details
null
​
item_count
number
Total number of product within the cart.
(Example: if there are 3 each of 2 products, the number will be 6)
items
array
Products within the cart.
(Example: if there are 3 each of 2 products, the number will be 2)
paymentMethod
​
​
sandboxEnabled
Boolean
​
selectedShipping
object
Selected shipping method.
shipping_methods
null
​
squareUpAppID
null
​
squareUpPaymentForm
null
​
user
object
User service.
zipCode
string
​
Methods
Bolded
methods are currently used in templates.
Method
Params
Details
​
add
​
productId
qty
Adds an item to the cart.
​
addBySku
​
sku
qty
Adds an item to the cart based on the SKU, rather than product ID.
​
addItems
​
products
Adds multiple items to the cart.
​
addPromoCode
​
promoCode
Applies a promo code to the cart.
authorizeCard
​
​
​
checkout
​
paypal
return_url
cancel_url
shipping_id
​
​
clear
​
​
Clears the cart.
clearShipping
​
​
​
completeOrder
​
params
​
confirmPaypalOrder
checkout_info
​
​
confirmOrder
​
checkout_info
​
​
deleteSaved
​
savedCartId
Deletes a saved cart.
​
fillDetails
​
​
Gets the cart details.
getAuthnetPaymentFormTemplate
​
Returns URL for Authnet Payment Form template.
getQty
productId
Gets the quantity of an item in the cart.
getPaymentMethod
​
Returns payment method.
getShippingMethodID
​
Returns the selected shipping method ID.
​
getSaved
​
savedCartId
Get a saved cart.
​
getSavedList
​
​
Gets a list of the user's saved carts.
Previous
Alerts
Next
Cart.add()
Last modified
1yr ago
Copy link
Contents
Properties
Methods