the categories were arranged accordingly to the respective posistion same as sandbox to production it appears that categories 6 through 11 are not currently displayed in the desired vertical sequence that has not assigned. The order we specified for these categories is not being properly reflected in their respective positions.by using the smt we can… Continue reading How to arrange the commerce categories in the orderwise according to position
Month: September 2023
Disable a shipping method based on a condition
Here we’re considering the ordertotal of the cart. di.xml file
Change the value of a General or Accounting preference using SuiteScript
To change the value of a General or Accounting preference using SuiteScript 2.0, you must load each preference page using config.load(options) in N/runtime Module where options.name is COMPANY_PREFERENCES or ACCOUNTING_PREFERENCES. The config.load(options) method returns a record.Record. You can use the Record.setValue(options) method to set the preference. You can use the Record.getValue(options) method to get the… Continue reading Change the value of a General or Accounting preference using SuiteScript
How to add a new section for showing the profile name only in the top of the my account overview section
Scenario:Add the name of the customer logged in the below marked section in the myaccount overview page. Solution: We can either use extension or SMT.The simplest method will be using SMT.We can create a SMT area in the my account overview home page and this section will only appears in this page. We can get… Continue reading How to add a new section for showing the profile name only in the top of the my account overview section
To import item based on Category
In order to import the items based on the category, we have to get the item details import the item to account using csv import. The Import Assistant is available at Setup > Import/Export > Import Tasks > Import CSV Records, if you have the Import CSV File permission. Before an import, review the information available… Continue reading To import item based on Category
UnhandledPromiseRejectionWarning: TypeError: sass.sync is not a function
While running local through git there may a chance of showing sync is not a function error. To resolve this try to fetch the extension/theme from outside folder and copy all foldres and files expect workspace and nsdeploy file and paste to corresponding git folder
Dart – Null Safety
Null safety prevents errors that result from unintentional access of variables set to null. Nullable Types (?) : To specify if the variable can be null, then you can use the nullable type operator. You don’t need to initialize a nullable variable before using it. It is initialized to null by default. The Assertion Operator (!) :… Continue reading Dart – Null Safety
How we can set the subitem in the PDP page.
It’s possible to we can set the subitem in PDP page using setOption method. syntax :setOption( cart_option_id, value )
Restrict the items based on subsidiary for all the global searches including plp page without getting issue in pagination and total items.
using this Methode we can restrict the items for the Seach using Api based on subsider in the profile model we can get the API using that Api we can restrict the items on the search and PLP if we are using the Custome field then we also we need to add that fields in… Continue reading Restrict the items based on subsidiary for all the global searches including plp page without getting issue in pagination and total items.