Use images url instead of storing them in the database.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi there,
I am trying to import products, category from an old legacy database. I succeded to import them and add the mapping (Product_Category_Mapping ...)


But I have a problem with Pictures, since i have them stored as urls pointing to a cdn. I cannot download them all and reupload them in nop commerce admin .

First Can you tell me how nop manage Product pictures? i upload a picture and then it generates two versions, one normal and one thumb ? am i right?

Second can you please help me to change nop commerce code so instead of reading the binary data or the seo file name in the table [Picture] i want to add a column (or many UrlHD, UrlSd) to store the Product Image Url and then use it anywhere in the admin and the website.



For now i need the quickest solution, and i don"t care about how the images are managed in administration because the pictures are managed with another tool that will upload to cdn, add the picture to the Picture Table and then map it to to the product

Thanks very much for help
Riad
7 years ago
I can only answer your first question:

When you upload an image into nopCommerce using the built-in file upload on the edit product screen, there are actually several versions of the image that get created.
You can see them all, and at what dimensions they are configured to be created/displayed here:
Admin area >> Configuration >> Settings >> Media Settings
7 years ago
http://docs.nopcommerce.com/display/nc/Media+Settings
7 years ago
thank you
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.