1)First create a module app/code/JJ/Account then in that module create a registration page, then create etc folder in that module.xml, and create a view folder- view/frontend/layout/ create a customer_account_index.xml then create a template file under the viwe/frontend/templates/info.phtml file. this two line – for get the data from customfield to my account page under the account… Continue reading How to display the custom fields data on my account page under account information and how to remove the unwanted nav links from my account tabs.
Month: May 2023
JavaScript code to toggle visibility of a section on checkbox click.
First, create the section that you want to show/hide. Give it a unique ID so you can reference it later. Next, add a checkbox to your page that will trigger the show/hide functionality. Give it a unique ID and add an onclick event that will call a JavaScript function to show/hide the section. Finally, create… Continue reading JavaScript code to toggle visibility of a section on checkbox click.
Modification of href value based on click event
We can mofify the href value according to our requirement based on any click events. Here we have a href which redirects to a page and we have a button for which we have created an event in which when this button is clicked the href changes to different href and hence when clicked on… Continue reading Modification of href value based on click event
Create Item Fulfillment from Sales Order using RESTlet
First fetch the particular sales order by internal ID which is passed by POSTMAN API as parameter. The following code is used. let salesOrderID = requestBody.salesorderid; let salesOrderRec = record.load({ type : record.Type.SALES_ORDER, id : salesOrderID, … Continue reading Create Item Fulfillment from Sales Order using RESTlet
Remove array values
To remove values from array in js use _.reject on array. From array ‘categoryArray’ remove values equal to variable ‘hideCategory’.var categoryArray = originalRet.categories[1].categories;categoryArray= _.reject(categoryArray, function (method) { return method.text==hideCategory; });
Resolve Error: “Uncaught TypeError: Cannot Read Properties of Undefined (Reading ‘Application’)”
Javascript error “Uncaught TypeError: Cannot read properties of undefined (reading ‘application’)” on the browser console of their Home page and Quick view pages. Navigate to Commerce > Websites > Configuration Select Website and Domain Click Integrations Click Site Management Tools CMS Adapter Version: Select 3 Click Save Perform a Cache Invalidation Request
Troubleshooting scenario for bounced Emails
Troubleshooting scenario for bounced Emails
To Solve the Issue Cannot Continue this Authorization Flow, Your Current role has insufficient permission.
Scenario To fetch the theme or Extension we need to Create New Token, but while Creating New Token we will see the Above error message. Solution Open terminal install npm before Fetching the theme,Run below Code npm i oauth1 suitetalk Now Write Code for Fetch: gulp theme: fetch Create new Token Now it will redirect… Continue reading To Solve the Issue Cannot Continue this Authorization Flow, Your Current role has insufficient permission.
SQL formula current month plus/minus X days, not including weekends.
SQL formula current month plus/minus X days, not including weekends.
How to use the standard fetch and post method in SCA
The fetch method in SCA. We can pass the values inside the fetch function.The example is added below The standard post method of form submission example is added below