Hi, Is there a way to expose custom commerce categ...
# suitecommerce
u
Hi, Is there a way to expose custom commerce category fields to webstore, and have that displayed on category page in SCS? I have added custom field on Configuration -> Integration -> categories, and selected that to be available as additional field on webstore, but from extension I'm not able to get that on webstore using
Copy code
plp.getCategoryInfo();
Thank you for your time.
s
On SCS? Not really, no. Basically they're not fetched by default and so you would need to write an extension that fetches them separately. If it's SCA then you can modify the site's code to fetch them.
u
thank you for your time, yes on SCS. how would you suggest to fetch custom commerce category fields, I mean via any Suitelet? I created an extension and overridden the default category field list in configuration page (i.e. Configuration -> Integration -> categories) my custom field name started appearing there, I selected that and fetch category info on webstore using plp.getCategoryInfo(); but no luck.
s
Well the simple answer is that you do something like
nlapiLookupField('commercecategory', category.internalid, ['yourcustomfield'])
in SS1.0, substituting in the values as necessary. You could then send that back to the frontend and do with it what you want
1
u
thank you, 🙂
Thank you @Steve Goldberg it worked.
netsuite halo 1