[cart] create quotation on checkout

This commit is contained in:
Anand Doshi
2013-06-14 17:44:03 +05:30
parent 37982a6a1f
commit abc100302c
17 changed files with 306 additions and 59 deletions

View File

@@ -201,5 +201,13 @@ $.extend(wn.cart, {
update_display: function() {
$(".cart-count").text("( " + wn.cart.get_count() + " )");
},
set_value_in_cart: function(item_code, fieldname, value) {
var cart = this.get_cart();
if(cart[item_code]) {
cart[item_code][fieldname] = value;
this.set_cart(cart);
}
}
});