Magento code add pictures to the product

0

To add pictures to the product, put them into the according folder.
With this code, I used to build a module have import product function and you can use anywhere it.

Before, you need a array include image type. Here is thumbnail, small_image and image. All images put into the according folder. I will use “media/import/”.

 

Next step: run this code and see result.

Magento add pictures to the product
Thanks for watching!

About Author

Là một developer rất ham chơi nhưng không ham hố, không ham chơi nhưng rất thích cầm đầu...

Leave a Reply