The addMultipleItemsToOrder
actor-chain is used when adding more than one item to shopping cart.
Parameter | Description |
---|---|
| The number of items being added to the shopping cart. This is different than the quantity of each product being added. |
| The catalog reference ID. |
| Used only when adding gift or wishlist items to the shopping cart. Identifies the ID of the list. |
| Used only when adding gift or wishlist items to the shopping cart. Identifies the ID of the list item. |
| Used only for in-store pickup. This identifies the location of the store. |
| The ID of the product to add to the shopping cart. |
| The number of each product being added to the shopping cart. For example, two sweaters or four pairs of shoes. |
| The number of each product being added to the shopping cart, but in fractional quantities. For example, a half gallon of milk. |
Add Multiple Items to Order Example
curl -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{ \"addItemCount\": 3, \"items\": {\"atg-rest-class-type\":\"java.util.ArrayList\", \"atg-rest-values\": [{\"atg-rest-class-type\": \"atg.commerce.order.purchase.AddCommerceItemInfo\", \"catalogRefId\": \"xsku1043\",\"productId\": \"xprod1015\",\"quantity\": 1}, {\"atg-rest-class-type\": \"atg.commerce.order.purchase.AddCommerceItemInfo\", \"catalogRefId\": \"xsku60325\",\"productId\": \"xprod40028\",\"quantity\": 2}, {\"atg-rest-class-type\": \"atg.commerce.order.purchase.AddCommerceItemInfo\", \"catalogRefId\": \"xsku1001\",\"productId\": \"xprod1001\",\"quantity\": 3} ]}}" "http://localhost:8280/rest/model/atg/commerce/order/purchase/CartModifierActor/ addMultipleItemsToOrder"