In SCA, the view or template of all checkout pages may be the same. In such cases, we need to identify different pages with class names or IDs to create different UIs on the checkout pages. The variable {{currentStep}} can be set as class or id on corresponding template file
Author: Shyma T
Inventory Adjustment
The Inventory adjustment help us to change the quantity and value of an inventory item without entering an order for a specific purpose Go to Transactions > Inventory > Adjust Inventory Set values in fields of each of the following sections or subtabs Select the item you want to adjust inventory and update the quantity 4.… Continue reading Inventory Adjustment
Item Search API
Item Search API returns data from all item records based on the conditions we applied The Base url – http://www.mywebstore.com/api/items You can also build the URL for the next set of results using the limit and offset parameters returned by the API as
Scroll function in SCA
On clicking a button or text we can scroll the page using jQuery
Identify my-account Overview page
To separate my-account overview page from other my-account pages add a class name as
TypeError: ProfileModel.getInstance is not a function
To solve the error shown in console define the variable profile as var profile = ProfileModel.ProfileModel.getInstance();
Update the PDP Image Gallery View
To make some modifications to the image gallery on the PDP page
Customize Log-Off Destination
In SCA when click on the logout button the user will redirect into home page by default.We can redirect the user to the Login Page by customising We can change the url at the initialize function of Home.View
Display the price based on subsidiary(Domain) on SCA Webstore
RequirementWhen the user is not logged into website the price displayed should be based the subsidiary (Domain). (Normally the price displayed will be based on default subsidiary). Solution In the SCA web stores by default the displayed price will be based on the currency of the default subsidiary when the user is not logged into the… Continue reading Display the price based on subsidiary(Domain) on SCA Webstore
To replace the elements in an array with the elements of another array
We can replace part of an array with items from another array,