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.

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.

Published
Categorized as Magento

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.

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

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.