$451.OrderDetails

jdubs edited this page Oct 23, 2016 · 1 revision

Overview

The JSON object exposing all information related to the user's current cart details.

Data Contract

$451.OrderDetails = {
	"orderTotal": 0.00,
	"lineItems": [
		{ 
			"specs": [
				{"name":"image", "value":null},
				{"name":"Name", "value":"Fri Aug 21 2009"}
			],
			"productName":"Scale Image to Fill", 
			"productID":"Document Actions", 
			"quantity":1, 
			"unitPrice":0.000000, 
			"lineTotal": 0.000000
		},
		{ 
			"specs": [
				{"name":"$1", "value":null},
				{"name":"$2", "value":null},
				{"name":"ImageChoice", "value":"Green Bay"},
				{"name":"Images", "value":"{Green Bay=gbhome.jpg}\\r\\n{Indianapolis=indyhome.gif}\\r\\n{Tennessee=tenhome.jpg}"}
			],
			"productName":"SelectImage", 
			"productID":"Document Actions", 
			"quantity":1, 
			"unitPrice":0.000000, 
			"lineTotal": 0.000000
		}
	]
}

Example Usage

$.each($451.OrderDetails.lineItems, function(i, line) {
	alert(line.productName);
});


for (line in $451.OrderDetails.lineItems) {
	alert($451.OrderDetails.lineItems[line].productName);
};

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.