Answer the question
In order to leave comments, you need to log in
How to store image path in DETAIL_PICTURE?
From 1C, when exchanging, product image files are saved to the upload / 1Cpicture / folder, the name of the images is formed based on the xml_id of the product. It is necessary to write the path to the image file into the value of the ["DETAIL_PICTURE"] parameter, while not re-saving the image to another folder, but to save the path to the image.
I looked at the CFile::MakeFileArray method, I realized that it resaves the image file itself, but you only need to save the path to the image in the upload/1Cpicture/ folder so that the file itself is not resaved and its name does not change. How can I do that?
Do I need to register a file in the system before getting the path to it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question