Hello to everybody! Does anyone know how to get a ...
# suitecommerce
f
Hello to everybody! Does anyone know how to get a custom category field to the website frontend? Thanks!
s
You need to fetch them separately. In a SuiteScript file, you need to do something like this:
Copy code
Application.on('after:Category.get', function (CategoryModel, category) {
    var lookupResults = nlapiLookupField('commercecategory', category.internalid, [
        'yourcustomfield'
    ]);
    category.customfield = lookupResults.yourcustomfield
});
f
Hi Steve! Thanks for your response. I'll try that solution. Regards!