Use the data patch setup on AdobeC Create Setup -> Patch -> Data -> AddCustomAttribute.php <?php namespace JJCustomerNetsuiteFieldSetupPatchData; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoCustomerSetupCustomerSetupFactory; use MagentoCustomerModelCustomer; class AddCustomAttribute implements DataPatchInterface { private $eavSetupFactory; private $customerSetupFactory; private $moduleDataSetup; public function __construct( EavSetupFactory $eavSetupFactory, CustomerSetupFactory $customerSetupFactory, ModuleDataSetupInterface $moduleDataSetup ) { $this->eavSetupFactory = $eavSetupFactory; $this->customerSetupFactory =… Continue reading How to create a custom field on customer account information section in Adobe commerce
Month: May 2024
How to integrate with Magento
For the standard token based integration. Go to Magento Backend, system -> Integrations Create a new integration setup and generate the key and tokens. Use these for the integration.
Use a Custom Font on a SuiteCommerce Advanced Website
Scenario More and more brands would like to showcase their style through their web stores including the use of different fonts. Solution Navigate to Documents > File Cabinet > Web Site Hosting Files > Live Hosting Files. From here, create a new folder (ex: font) Upload the custom font file on the newly created… Continue reading Use a Custom Font on a SuiteCommerce Advanced Website
Resolve “samlMetadataWarning is not defined” Error on Website Setup Record
Error: “samlMetadataWarning is not defined” is being shown in the browser’s developer console after saving Website Setup Record and is not reproducible using Incognito or Private window. Solution The behavior is possibly due to browser cache. In order to fix the error, the user needs to clear the browser cache if possible.
Adding priority for items in search result
We can prioritize specific products, like Starburst Electrodes, in search results by adding a special field such as a “Priority” in the item record. This way, products with the priority setting will appear first when we are searching for anything. For this, we need to add a field in the item record. we can do it… Continue reading Adding priority for items in search result
How to detect a transactionline is deleted?
Managing transactions in NetSuite often requires ensuring data integrity, including detecting any deleted transaction lines. While NetSuite does not provide a direct way to detect deleted lines, you can use saved searches to infer deletions by examining gaps in line numbers. This method helps identify missing lines, which indicates deletions. Here’s how you can set… Continue reading How to detect a transactionline is deleted?
Function generate temporary Password
function generateTemporaryPassword() { try { let chars = ‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789’; let password = ”; for (let i = 0; i < 10; i++) { let randomIndex… Continue reading Function generate temporary Password
Map reduce script to read the data from the API and create custom record in NetSuite
/** * @NApiVersion 2.1 * @NScriptType MapReduceScript */ define([‘N/http’, ‘N/https’, ‘N/record’, ‘N/search’], /** * @param{http} http * @param{https} https * @param{record} record * @param{search} search */ (http, https, record, search) => { /** * Function to convert date to desired format … Continue reading Map reduce script to read the data from the API and create custom record in NetSuite
Sample Financial Institution Connectivity
/** * @NApiVersion 2.x * @NScriptType fiConnectivityPlugin * @NModuleScope SameAccount */ define([‘N/search’], /** * @param {search} */ function (search) { /** * Lookup currency symbol by internal ID. * @param {string} currencyInternalId – Internal ID… Continue reading Sample Financial Institution Connectivity
NetSuite to Adobe Commerce Customer/Contact Sync – Sample Code
/** * @NApiVersion 2.1 * @NScriptType UserEventScript */ /******************************************************************************************************* * Corp Design * * CDUS-4073 : NetSuite – Adobe Commerce Two Way Customer/Contact Sync * * ***************************************************************************************************** * * Author: Jobin and Jismi IT Services * * Date Created : 20-May-2024 * *Description : This User Event script is developed to sync the customers and… Continue reading NetSuite to Adobe Commerce Customer/Contact Sync – Sample Code