Products excel file

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

I've got a problem, I have to import in my 3.9 version an excel file with a lot of products, but I would like to write something in the admin comment form for each product (that is present when I create a new product in the nopcommerce Admin). When I check in the Excel file the column for the admin comment is not in the Excel file.

IT is possibile to import also this parametr in the Excel file or not?

Any help will be appreciate
Lorenzo
5 years ago
Of course yes,

For that you need to customize in import manager service.

In which you have to do code for get data from Excel raw and set it to product class.

Hope you will understand..!!
5 years ago
Hi Lorenzo,

This is out of box.

You can customize code for this.

You can add below line at nopCommerce_3.90_Source > Libraries > Nop.Services > ExportImport > ExportManager.cs file

new PropertyByName<Product>("AdminComment", p => p.AdminComment),



5 years ago
Hi to everybody.

We have modify as you told us and now the file excel has the coulumn with AdminComment . I have tried to upload some products with some sentences in the AdminComment "Esploso completo di rasaerba K 35" and the upload went fine... but when I checked the products the Admin Comment was empty. what am I doing wrong?

TaxCategory  IsTelecommunicationsOrBroadcastingOrElectronicServices  ManageInventoryMethod  AdminComment
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35
Iva  FALSO  Dont Manage Stock  Esploso completo di rasaerba K 35

Thank you
Lorenzo
5 years ago
(removed)
5 years ago
Hi,

If you share your code then we can look where is the problem.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.