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

How to resolve overflow property which does not working in some devices,browser

Use Vendor Prefixes: Some older versions of iOS may require vendor prefixes for certain CSS properties. Make sure you have included appropriate prefixes. For example, use-webkit-overflow-scrollingfor scrolling elements Use Hardware Acceleration: To improve performance and reduce potential issues, you can try using hardware acceleration by applying transform: translate3d(0,0,0); to the element with theoverflowproperty