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
Author: Priyadarshini Elumalai Kannan
How to solve the breadcrumb is displayed under the header without using settimout
we can use the afterViewRender function instead of setimeout set interval delay Example of afterViewRender function solution:
How to resolve the blank space issue of the products on PLP page
We might face the above issue in the website . We can use this solution to resolve this issue. solution: To solve the issue we we can use the CSS property white-space: nowrap; example: .facets-items-collection-view-row{ white-space: nowrap; }
how we can add a functionality for login and signup button
when we click on login it should be navigated to corresponding page based on the login params template
How to remove the blue bar highlight while clicking on button or link
It’s a CSS default issue because sometimes we can see this issue in Mobile devices, and Ios devices, and even sometimes we have seen this issue on the desktop of both Mac and Windows. example of the issue Solution: Issue will be resolved
How we can add Warning messages for creating the extra field in the login/registration page
Resolve error: Cannot find a valid activation for this combination
Navigate to Setup > SuiteCommerce Advanced > Extension Managementand execute an activation first Then the issue will be solved
How to solve the page static issue of the home page
When we check the website the home page when we move the page as shown below This can be resolved by giving the overflow body{overflow-x: hidden;}
How to resolve the hovering issue of the button in safari
In Safari the shorthand notation does not work need to give in separate property if we have given in shorthand notation Example: So this will not work Instead try writing in full form like this The issue will be resolved
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