Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. The Developer Center continues to support Commerce 6.13.0 through 7.4.1.Visit new site

Add an Item to a Cart

Add an Item to a Cart

An item is a purchasable good, like a T-Shirt, a movie, a song, etc, while a item definition is the description of the item. For more information on items and item definitions, see Items Explained.

Workflow for adding an item to a cart:

  1. GET - an item
  2. GET the item's addtocartform
  3. POST the item to a Cart's addtodefaultcartaction