The template for Facet view in PLP page can be updated as shown below. Extend the facet item child view in Facet Browse view. Override the grid, table, list view templates. _.extend(FacetsBrowseView.prototype.childViews, { ‘Facets.Items’: function () { var self = this; var display_option = _.find(this.itemsDisplayOptions, function (option) { return option.id === (self.translator.getOptionValue(‘display’) ? self.translator.getOptionValue(‘display’) :… Continue reading How to extend the Grid, List, and Table Facet templates in SCA
Author: Shyma T
How to extend the Grid, List, and Table Facet templates in SCA
The template for Facet view in PLP page can be updated as shown below. Extend the facet item child view in Facet Browse view. Override the grid, table, list view templates. _.extend(FacetsBrowseView.prototype.childViews, { ‘Facets.Items’: function () { var self = this; var display_option = _.find(this.itemsDisplayOptions, function (option) { return option.id === (self.translator.getOptionValue(‘display’) ? self.translator.getOptionValue(‘display’) :… Continue reading How to extend the Grid, List, and Table Facet templates in SCA
Create a Custom Theme in SCA
There are two ways to create a theme: With the create command: This is the preferred method to create a custom theme. By fetching active theme files: To know more, see Fetch the Active Theme. When you use the create command to create a theme, maintaining and updating it is more efficient. The new theme inherits… Continue reading Create a Custom Theme in SCA
Out of Stock Message
With the 2023.2 release, The Out of Stock error message lists the exact number of items that are not in stock so that the user can go back and edit the order on SuiteCommerce and SuiteCommerce Advanced websites.
Issue – gulp: File C:\Users\user\AppData\Roaming\npm\gulp.ps1 cannot be loaded because running scripts is disabled on this system
Issue Solution
Resolve Unexpected Error on gulp extension:fetch
With the update on SuiteCommerce Extension Management bundle to support token-based authentication (TBA), a user may encounter unexpected error when executing gulp extension:fetch when integration record is not created. To resolve the error, follow the steps The following gulp commands have been added with the 2023.1 release, and can be used with extension and theme developer… Continue reading Resolve Unexpected Error on gulp extension:fetch
Extend template file
Normally we can extend the template file for a view as shown below For some views, it will not work due to some changes in the source file. For example, the template file for the view ‘ItemsSearcherItemView’ on the source is defined as shown below. In this case, the template file can be extended as
Resolve Error ‘We Couldn’t Process Your Item’ When Adding Items to the Cart
When a Matrix item is added to the cart, but there is an error message received when trying to process it, the steps below could be followed to resolve the error. View the item record of the item that cannot be added to the cart Click on Custom tab and check what Item Options are included for the said… Continue reading Resolve Error ‘We Couldn’t Process Your Item’ When Adding Items to the Cart
How to make the Add To Cart button visible on facets view
To display the add to cart button on the facet view do the following steps 1. Navigate to Commerce > Websites > Configuration2. Select Website and Domain and click Configure3. Under the Shopping Catalog tab, check the option Add To Cart From Facets View4. Click Save
Display Online Price only for Logged In Shoppers
If the user wants to hide the item prices on the webstore and only make it visible to customers are currently logged in, do the following steps 1. Navigate to Setup > Site Builder > Set Up Web Site2. Go to the Shopping subtab3. Under the Shopping Basics section, click on the REQUIRE LOGIN FOR PRICING checkbox4.Click Save The prices and the add to cart button on the web… Continue reading Display Online Price only for Logged In Shoppers