Elbrus implementations of SuiteCommerce Advanced experience an issue where the value of an Item record’s Meta Tag HTML field does not appear in the page’s meta data. To correct this issue, create a custom module to extend ProductDetails.Base.Views.js as described in this section.
In addition to making these changes, you must create an ns.package.json file and update your distro.json file for any custom modules you include. You can download the code samples described in this procedure here: HTMLMetaTagsNotAppearingPatch--Elbrus.zip.
Step 1: Extend the ProductDetails.Base.Views.js File
If you have not done so already, create a directory to store your custom module.
Following best practices, name this directory extensions and place it in your Modules directory. Depending on your implementation and customizations, this directory might already exist.
Open your extensions directory and create a custom module to maintain your customizations.
Give this directory a unique name that is similar to the module being customized. For example:
Give this file a unique name that is similar to the file being modified. For example:
Open this file and set it up to overwrite the
getMetaTags() method of the ProductDetails.Base.View.js file.
Your file should match the following code snippet:
, function (
mountToApp: function ()
getMetaTags: function getMetaTags ()
Save the file.
Step 2: Prepare the Developer Tools for Your Customizations
Open the ProductDetails.Extension@1.0.0 module.
Create a file in this module and name it ns.package.json.
Build the ns.package.json file using the following code
Save the ns.package.json file.
Open the distro.json file.
This file is located in the top-level directory of your SuiteCommerce Advanced source code.
Add your custom module to the
modules object to ensure that the Gulp tasks include it when you deploy.
Your code should look similar to the following example:
"name": "SuiteCommerce Advanced Elbrus",
Include the module definition (
SC.Shopping.Starter entry point.
Your distro.json file should look similar to the following:
Save the distro.json file.
Step 3: Test and Deploy Your Extension
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). If you are currently running SCA on a local server, your changes should appear on your local site immediately.
Confirm your results.
Upon successful deployment, your Item record Meta Tag HTML value should appear in the meta data within the DOM of the associated product details page.