Add new field Product without touch Core

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,

I am new one in this forum, I've just installed the 3.80 version of NopCommerce. I need to add new fields in the Product view (both backend and front). Is there any workaround to do this without touch nopcommerce core?

I already found a way to add touching the core, but I dont think is the best way.

Marco
7 years ago
Hi Marco,

you can add a new field to Product entity without touching the source code by creating your own plugin and using Generic Attributes there.
Look at this page. Here you can find basic steps to create a plugin for nopCommerce.

Generic Attributes are used to store additional data of entities without creating a new table. For example look at the Register method of the CustomerController (Nop.Web.Controllers). There you can see how we use them to store some customer data.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.