Add items to shopping cart
- URL
http://www.qworum.com/ecommerce_pack/add_items_to_cart
- Screenshot
- Description
-
This service adds items to the user's shopping cart.
Parameter
As parameter, this service expects an XML document that contains the items to be added to the shopping cart. Example:
<items> <!-- this element contains 0, 1 or more 'item' elements --> <item> <id>I003</id> <title>Baseball hat</title> <quantity>2</quantity> <price currency='USD'>12.95</price> <web>http://www.callersite.com/shop/I003</web> <!-- the optional 'web' element points to a page that describes the item --> </item> <item> <id>I098</id> <title>Executive briefcase</title> <quantity>1</quantity> <price currency='USD'>34.75</price> </item> </items>Result
This service returns the current shopping cart contents. Example:
<items> <!-- this element contains 0, 1 or more 'item' elements --> <item> <id>I003</id> <title>Baseball hat</title> <quantity>2</quantity> <price currency='USD'>12.95</price> <web>http://www.callersite.com/shop/I003</web> </item> <item> <id>I098</id> <title>Executive briefcase</title> <quantity>1</quantity> <price currency='USD'>34.75</price> </item> <item> <id>I256</id> <title>Red t-shirt</title> <quantity>1</quantity> <price currency='USD'>25.95</price> </item> </items>Call example
<qrm:goto href='/shop' xmlns:qrm='http://qworum.net/'> <qrm:call href='http://www.qworum.com/ecommerce_pack/add_items_to_cart'> <items> <item> <id>I003</id> <title>Baseball hat</title> <quantity>2</quantity> <price currency='USD'>12.95</price> <web>http://www.callersite.com/shop/I003</web> </item> <item> <id>I098</id> <title>Executive briefcase</title> <quantity>1</quantity> <price currency='USD'>34.75</price> </item> </items> </qrm:call> </qrm:goto>