How to remove increment/decrement buttons on number inputs

we can use the css property for removing the increment/decrement buttons as shown below code input.quick-add-box-right-quantity-value[type=”number”], input.cart-item-summary-quantity-value[type=”number”]{    -webkit-appearance: none;    -moz-appearance: textfield;    appearance: textfield; }

Adding the stock message in cart page

we can add the stock message by extending the view  _.extend(CartLinesView.prototype, { template: jj_cart_lines_tpl, getContext: _.wrap(CartLinesView.prototype.getContext, function (fn) { var originalStock = fn.apply(this, _.toArray(arguments).slice(1)); var inStockMessage = originalStock.item.attributes._inStockMessage; var outofStockMessage = originalStock.item.attributes.outofstockmessage; var availableQuan=this.model.attributes.item.attributes.quantityavailable; if(availableQuan !==0){ originalStock.inStockMessage = inStockMessage; } else{ originalStock.outofStockMessage = outofStockMessage; }   return originalStock; }), in corresponding template <div class=”instock-cart-message”>{{inStockMessage}}</div> <div… Continue reading Adding the stock message in cart page