Skip to content

Instantly share code, notes, and snippets.

@dashk
Created February 10, 2013 23:13
Show Gist options
  • Save dashk/4751465 to your computer and use it in GitHub Desktop.
Save dashk/4751465 to your computer and use it in GitHub Desktop.
cart/store model
define(
[ 'common/model/baseModel' ],
function (BaseModel) {
return BaseModel.extend({
urlRoot: function() {
},
defaults: function() {
return {
storeId: null,
storeName: null,
paymentMethod: null,
deliveryOptions: null,
products: []
/**
* Each item in products should have:
{
name: null,
price: 0,
maxQuantityPerOrder: 0,
imageUrl: null,
quantity: 0
}
*/
};
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment