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
Tag: sca extension
Points to Note While Removing ‘Free’ From Shipping Methods with Zero Rate
Removing the “Free!” text from the shipping method list displayed on the website on the checkout page using content management. We can only replace the text by blank space or any other alternative symbol or text. The Shipping methods with non-zero cost will be displayed in the UI, only zero-cost in shipping method the “Free!”… Continue reading Points to Note While Removing ‘Free’ From Shipping Methods with Zero Rate
Extension to Hide Credit card option in Myaccount menu
Scenario:The client wants to hide the Credit card option under the Settings tab and also needs to hide it from the MyAccount Header menu. Solution: We can create an extension for this purpose. We can extend the ‘MenuTree.View’ for hiding from my account page and ‘Header.Menu.MyAccount.View’ from the header menu. Code:
SC Blog
The Blog extension lets you create blog posts for your website using Site Management Tools(SMT). You can add posts with images, include post excerpts, and organize posts withcategories and tags.Activating the Blog extension makes four new components available on your site:Blog Home Page — This page is created as the home page for your blog… Continue reading SC Blog
How to store a value in a cookie and to get that value.
Here is code to create a variable in cookie and we are set a value to that and then getting in the same code.
Extending template file
Alternative way for extending the template file, in 2020.2 later SCA has got some updates in the View, so normal extend method we use wont work. Alternative solution is Create a custom view and replace the existing one
A Method To Find a Value that is Present Or Not in An Array of Objects in Javascript
Scenario: If we want to check whether any particular values are present in an array of objects and to do some actions according to that. Then we can use the following code: Here the data is from the pricing schedule which is basically an array of jects so here we are finding the price of… Continue reading A Method To Find a Value that is Present Or Not in An Array of Objects in Javascript
How To Add Custom Extension Manager
Scenario This is applicable if you want to add custom navigation path to access the Extension Manager using the SC Deployer Role. Solution Navigate to Customization > Scripting > Scripts Look for NS SC ExtMechanism Services Click View Click Deployments Tab Click NS SC ExtMechanism UI NS SC ExtMechanism UI:Click Edit Go to Links Sub-tab Add a new row Center: Select Classic Center Section: Select Support Category: Select Custom Label: Select Custom Extension Manager … Continue reading How To Add Custom Extension Manager
Some of the key considerations before creating an extension in SCA
1. Provide a proper name and description for the extension. 2. Select all sections (shopping, my account, checkout) if required. Otherwise, select the required option based on the requirement. 3. Select only the required files. If you accidentally select any unwanted files while creating the extension, remove the folder after creating the extension. eg: Here… Continue reading Some of the key considerations before creating an extension in SCA
Home page slider for Best Seller and New Arrivals items
Need to develop best seller and new arrival sections. The item must be configurable from the configuration record. The item image must be changed when hovering over the item. When the item must be redirected to the item page. So clients can change the item image, and hover the image to their needs accordingly. Used… Continue reading Home page slider for Best Seller and New Arrivals items