if we selected a product and add a certain amount of quantity of product the quantity should updated in cart , previously one issue was there if we add 300 as quantity it only showing 1 as quantity so what we selected quantity should update in cart
getContext: _.wrap(QuantityPricingView.prototype.getContext, function getContext(fn) {
var context = fn.apply(this, _.toArray(arguments).slice(1));
var self = this;
var priceSchedule = [];
priceSchedule = self.model.get('microsite_price_detail') || []
var pricingSchedule = []
if (priceSchedule.length != 0) {
pricingSchedule = priceSchedule
}
else {
var pricingSchedule = this.model.get('item').get('onlinecustomerprice_detail').priceschedule || [];
}
if (pricingSchedule.length != 0) {
var quantityAtFirst = pricingSchedule[0].maximumquantity;
var quantities = [];
var counter = 0;
var quantityFromModel = 0;
if (pricingSchedule) {
if ($("#quantity").val()) {
quantityFromModel = this.model.get('quantity');
} else {
this.model.set("quantity", parseInt(quantityAtFirst));
}
}
