Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

How to import images from the same folder in which csv is located instead of /var/med

  1. #1
    New member
    Join Date
    Nov 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to import images from the same folder in which csv is located instead of /var/med

    When I specify the image name in the image coloumn in csv file, it goes into /var/media to find it.

    I want to import images from the same folder in which the csv is located i.e. when I write /image.jpg magento should look into the same folder as csv or it can be C:\imagefolder\image.jpg

    I googled for some links. I came to know about this: http://www.blog.magepsycho.com/how-t...rl-in-magento/

    This describes how to get images from an external image url. But how do I fetch images from the same folder?

    I think I have to do something in app\code\core\Mage\Catalog\Model\Convert\Adapter\P roduct.php

    at line 602

    $imageFile = trim($importData['_media_image']);
    $imageFile = ltrim($imageFile, DS);
    $imageFilePath = Mage::getBaseDir('media') . DS . 'import' . DS . $imageFile;
    But I am clueless if I should remove the Mage::getBaseDir('media') or do something else

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    Canada
    Posts
    873
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    fda.csv Data on warning letters sent to doctors by the U.S. Food and Drug ... to refer to the full path for their location, and anything we save will be written to this folder.) Important: Object and variable names in R should not contain spaces. ... R session by selecting Import Dataset>From Text File in the Environment tab.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •