Having the text over two lines will not always align with the design since that will leave us with no space for description. To overcome this we can use overflow feature of CSS
Author: Joseph Ronald
disabling an input type as read-only
Get a reference to your input box however you like (eg document.getElementById(‘mytextbox’)) and set its readonly property to true: Alternatively you can simply add this property inline (no JavaScript needed):
Styling on Checkout and my account pages
If we need to style on my account and checkout page, we need to import corresponding SASS file to checkout and my account file otherwise it will not affect the page
Add to Cart redirection
when we try to add one item to the cart it will be updated, but we can set which way to set the updates using configuration record when we add item pop up will be shown open mini cart redirect to cart
For getting the matrix child details
For normal case , we can get the item details from getItemInfo(); function . But if need to get child item details after selecting the option we need to get from getSelectedMatrixChilds(); function
After Login need to redirect to the corresponding PDP page
If a customer trying to log in from any of the PDP pages it will redirect to the login page and he/she can log in and it must redirect my account page. But instead of that, we can redirect back to that specific PDP page by adding origin and orgin_hash We can directly add to… Continue reading After Login need to redirect to the corresponding PDP page
Creating Modal using HTML and CSS
when we want to add a modal instead of a global view message, we can add it simply using HTML and CSS.
Getting error while passing True/False value to netsuite
Hen we try to pass true or false to the backend using the SCA extension we must beware of the format. This means if we try to add code like this, we got an error so we need to pass “T”,”F” values for the backend communication
Add custom record on NetSuite navigation
Create custom records from customisation. Under the sub-tab Link add to fill the required data such as centre, section, category, Link
Displaying Commerce category custom field data on Website
In normal cases, we can get the custom field data of the commerce category from the configuration record but sometimes it will not work. But we can load record from NetSuite using suit e-commerce and get value from there and display it on website