The breadcrumb displays the exact path of the product(including the category) only if the PRIMARY CATEGORY checkbox is checked inside the Commerce category record in Netsuite. If the PRIMARY CATEGORY checkbox is not checked for the items inside the Commerce category record, then the path of the PDP page will be “Home/ Product name”. An… Continue reading Display exact product path in PDP
Tag: sca
Cart lines view
Display the UI of cart lines different from the default SCA UI. The cart lines are displayed different in Desktop and Mobile views. Cart lines tpl Cart lines scss
To create a landing page by using script-SCA
To create a landing page by script-SCA.
Issue in activation – SCA
To solve issue in activation.
Download html table as csv files
The given code converts an html table to a csv. You can download the csv file in your syatem. HTML table: Name Age Country Geronimo 26 France Natalia 19 Spain Silvia 32 Russia Table html code: java script code:
Prerequisites for Importing Matrix Items
Before you can import matrix items, you must do the following: Ensure that the Matrix Items feature is enabled, at Setup > Company > Setup Tasks > Enable Features, on the Items & Inventory subtab. Set up a custom list and a custom item field for each matrix option, at Customization > Lists, Records, &… Continue reading Prerequisites for Importing Matrix Items
Get the thumbnail of parent categories of an item in PDP
Get the parent category details using the method getItemInfo() in the entry point file. var item = pdp.getItemInfo(); Fetch the category model in the view file.Pass the url of the parent category to the Category Model and get the thumbnail. this.ParentCategories= item.commercecategory.categories; _.each(this.ParentCategories, function(pc){ pc.url=pc.urls[0]; var categoriesFetch = new CategoriesModel().fetch({ data: { fullurl: pc.urls[0] }… Continue reading Get the thumbnail of parent categories of an item in PDP
Adding facet field in SCA website
FACET OPTIONS WEBSITE SET UP Set up> suite commerce advanced>set up website> sca reference site example Search index subtab>facet fields Set the facet fields as in the image shown above. Now we need to add the facet field in the facet configuration Set up> suitecommerce advanced> configuration> select domain and website Shopping catalog subtab> facetsConfigure… Continue reading Adding facet field in SCA website
Add a new tab and fields init in configuration record
filename.json
Extend the item key mapping of SCA webstore
Extend the item key mapping file using the configuration as dependency.In this code, the methods “_comparePriceAgainst” and “_comparePriceAgainstFormated” are modified to change the compare price level to be displayed in the webstore.