For Vinson releases and earlier, when a PayPal address is submitted during a web store transaction, the NetSuite customer address is not updated to reflect the PayPal address. Instead, the original customer address within the NetSuite customer record is retained. Apply the patch described in this section to retain the PayPal address in the NetSuite customer record.
Step 1: Create the LiveOrder.Model.js Override file
If you have not done so already, create a directory to store your custom module.
Open this directory and create a subdirectory to maintain your customizations.
Give this directory a name similar to the module being customized. For example:
In the Live.Order.Override@1.0.0 directory, create a subdirectory called SuiteScript.
Go to the SuiteScript directory located under the Modules > suitecommerce > LiveOrder@X.X.X directory.
Copy the LiveOrder.Model.js file from Modules > suitecommerce > LiveOrder@X.X.X into the Live.Order.Override@1.0.0 > SuiteScript directory.
Update the file to remove the following line from the
This customization can also be applied to pre-Denali implementations of SuiteCommerce Advanced. Remove the line of code from the submit method located at ssp_libraries/Models.js
Step 2: Prepare the Developer Tools for Your Override
Create the ns.package.json file for the LiveOrderOverride@X.X.X directory. Add the following code:
Update the distro.json file.
Step 3: Test and Deploy Your Override
Test your source code customizations on a local server (see SCA on a Local Server) or deploy them to your NetSuite account (see Deploy to NetSuite).
Since this customization modifies a file that is stored as an SSP library, changes are not immediately visible in your local environment. You must first deploy your custom module directly to NetSuite. See Deploy to NetSuite for more information.
Confirm your results.