Reading list Switch to dark mode

    Magento CSV upload mass product with multiple images

    Updated 23 February 2024

    in this file app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php add following code

    $galleryData = explode(';',$importData["gallery"]);
    foreach($galleryData as $gallery_img) {
    try {
      $product->addImageToMediaGallery(Mage::getBaseDir('media') . DS . 'import' . $gallery_img, null, false, false);
    } 
    catch (Exception $e) {}
    }

    Add gallery column in csv file enter “image file name” with ‘;’ separate  and copy images in import folder then upload the CSV and run profiler

    Searching for an experienced
    Magento Company ?
    Find out More
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home