Displaying Commerce category custom field data on Website

In normal cases, we can get the custom field data of the commerce category from the configuration record but sometimes it will not work.

But we can load record from NetSuite using suit e-commerce and get value from there and display it on website

        getdetail: function(details) {
            try {
                
                // nlapiLogExecution('DEBUG', 'details us', details);
                var internal_id = JSON.stringify(details.data);
                // nlapiLogExecution('DEBUG', 'bottom us', internal_id);
                var parsedid = JSON.parse(internal_id);
                
               var rec = nlapiLoadRecord('commercecategory',parsedid)
                var bootomid = rec.getFieldValue('custrecord_bottom_description')
                return bootomid
            } catch (e) {
                console.log(e);
            }
        },

Leave a comment

Your email address will not be published. Required fields are marked *