Can Default Magento Export Profile Export All Gallery Images?












1















I'm trying to export magento simple products with gallery images I can only find "image","small_image","thumbnail" in the csv file but I think magento has also gallery field? Why it's not included in my profile? I have checked and I didn't skip it. I also tried to export only gallery field map and it was empty. I'm trying to understand if magento can export also gallery images path? The import is easy, there is many options such as Magmi etc... but how to make magento export those gallery images, The alternatives are expensive extensions for single license (I have 20 websites where I want to export) the unlimited license cost $1,000+ this is crazy. I just want images to be included nothing major. Please help?










share|improve this question





























    1















    I'm trying to export magento simple products with gallery images I can only find "image","small_image","thumbnail" in the csv file but I think magento has also gallery field? Why it's not included in my profile? I have checked and I didn't skip it. I also tried to export only gallery field map and it was empty. I'm trying to understand if magento can export also gallery images path? The import is easy, there is many options such as Magmi etc... but how to make magento export those gallery images, The alternatives are expensive extensions for single license (I have 20 websites where I want to export) the unlimited license cost $1,000+ this is crazy. I just want images to be included nothing major. Please help?










    share|improve this question



























      1












      1








      1








      I'm trying to export magento simple products with gallery images I can only find "image","small_image","thumbnail" in the csv file but I think magento has also gallery field? Why it's not included in my profile? I have checked and I didn't skip it. I also tried to export only gallery field map and it was empty. I'm trying to understand if magento can export also gallery images path? The import is easy, there is many options such as Magmi etc... but how to make magento export those gallery images, The alternatives are expensive extensions for single license (I have 20 websites where I want to export) the unlimited license cost $1,000+ this is crazy. I just want images to be included nothing major. Please help?










      share|improve this question
















      I'm trying to export magento simple products with gallery images I can only find "image","small_image","thumbnail" in the csv file but I think magento has also gallery field? Why it's not included in my profile? I have checked and I didn't skip it. I also tried to export only gallery field map and it was empty. I'm trying to understand if magento can export also gallery images path? The import is easy, there is many options such as Magmi etc... but how to make magento export those gallery images, The alternatives are expensive extensions for single license (I have 20 websites where I want to export) the unlimited license cost $1,000+ this is crazy. I just want images to be included nothing major. Please help?







      magento-1.8 export gallery






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 '15 at 8:36









      David Manners

      24.7k862212




      24.7k862212










      asked Jun 7 '14 at 12:50









      Boris DakaBoris Daka

      10612




      10612






















          3 Answers
          3






          active

          oldest

          votes


















          2














          If I understand correctly you are using Magento DataFlow export which is quite outdated.



          I suggest using Magento's ImportExport (SystemImportExportExport). It exports all gallery images into a _media_image column.






          share|improve this answer

































            0














            I think NO, I did not find this option in magento 1.9. I created a php script which will fetch and create csv file with these product images. Put this file in root and run. Change csv header according to your need.



                <?php
            error_reporting(E_ALL);
            ini_set("memory_limit", "100000M");

            require_once('app/Mage.php'); //Path to Magento
            umask(0);
            Mage::app("default");
            Mage::init();

            // Set an Admin Session
            Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
            Mage::getSingleton('core/session', array('name' => 'adminhtml'));
            $userModel = Mage::getModel('admin/user');
            $userModel->setUserId(1);
            $session = Mage::getSingleton('admin/session');
            $session->setUser($userModel);
            $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());

            $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
            $data=array();
            $csv_header = array(
            0=> 'SKU*',
            1=> 'Image Alt 01 URL',
            2=>'Image Alt 02 URL',
            3=> 'Image Alt 03 URL',
            4=> 'Image Alt 04 URL',
            5=> 'Image Alt 05 URL',
            6=> 'Image Alt 06 URL',
            7=> 'Image Alt 07 URL',
            8=> 'Image Alt 08 URL',
            9=> 'Image Alt 09 URL',
            10=> 'Image Alt 10 URL',
            11=> 'Image Alt 11 URL',
            12=> 'Image Alt 12 URL',
            13=> 'Image Alt 13 URL',
            14=> 'Image Alt 14 URL',
            15=> 'Image Alt 15 URL',
            16=> 'Image Alt 16 URL',
            17=> 'Image Alt 17 URL',
            18=> 'Image Alt 18 URL',
            19=> 'Image Alt 19 URL',
            20=> 'Image Alt 20 URL'

            );
            $data[0]=$csv_header;

            /* Get orders collection of pending orders, run a query */
            $_collection = Mage::getModel('catalog/product')->getCollection()
            ->addAttributeToSelect('*'); // ONLY AS EXAMPLE - DONT SELECT ALL ATTRIBUTES, VERY VERY BAD!
            //$_collection->getSelect()->limit(20);
            $products = array();

            foreach ($_collection as $key => $_product) {

            $gallery_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
            $items = array();
            $data[$key][0]=$_product->getSku();
            $v=1;
            foreach($gallery_images as $g_image) {
            $items = $g_image['url'];
            $data[$key][$v++]=$g_image['url'];
            }

            }



            //echo '<pre>';
            //print_r($data);


            header('Content-Type: text/csv');
            header('Content-Disposition: attachment; filename="productMediaImages.csv"');

            $fp = fopen('php://output', 'wb');
            foreach ($data as $line) {
            fputcsv($fp, $line, ',');
            }
            fclose($fp);
            ?>





            share|improve this answer































              -1














              You can use Aten Software's free Product Data Exporter to export all the images (main image, small image, swatch image) plus all gallery images to a CSV file. It was just updated this week to support Magento 2+, and is backward-compatible with Magento 1.x.



              Magento 2.x/1.x Export All Images to CSV File Free Script



              Gallery images will be exported in the aten_additional_image_url column, as a comma-separated list.






              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "479"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: false,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f22448%2fcan-default-magento-export-profile-export-all-gallery-images%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                2














                If I understand correctly you are using Magento DataFlow export which is quite outdated.



                I suggest using Magento's ImportExport (SystemImportExportExport). It exports all gallery images into a _media_image column.






                share|improve this answer






























                  2














                  If I understand correctly you are using Magento DataFlow export which is quite outdated.



                  I suggest using Magento's ImportExport (SystemImportExportExport). It exports all gallery images into a _media_image column.






                  share|improve this answer




























                    2












                    2








                    2







                    If I understand correctly you are using Magento DataFlow export which is quite outdated.



                    I suggest using Magento's ImportExport (SystemImportExportExport). It exports all gallery images into a _media_image column.






                    share|improve this answer















                    If I understand correctly you are using Magento DataFlow export which is quite outdated.



                    I suggest using Magento's ImportExport (SystemImportExportExport). It exports all gallery images into a _media_image column.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 9 '18 at 9:00









                    Teja Bhagavan Kollepara

                    3,00641949




                    3,00641949










                    answered Jun 8 '14 at 21:29









                    Tim BezhashvylyTim Bezhashvyly

                    10.4k43765




                    10.4k43765

























                        0














                        I think NO, I did not find this option in magento 1.9. I created a php script which will fetch and create csv file with these product images. Put this file in root and run. Change csv header according to your need.



                            <?php
                        error_reporting(E_ALL);
                        ini_set("memory_limit", "100000M");

                        require_once('app/Mage.php'); //Path to Magento
                        umask(0);
                        Mage::app("default");
                        Mage::init();

                        // Set an Admin Session
                        Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
                        Mage::getSingleton('core/session', array('name' => 'adminhtml'));
                        $userModel = Mage::getModel('admin/user');
                        $userModel->setUserId(1);
                        $session = Mage::getSingleton('admin/session');
                        $session->setUser($userModel);
                        $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());

                        $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
                        $data=array();
                        $csv_header = array(
                        0=> 'SKU*',
                        1=> 'Image Alt 01 URL',
                        2=>'Image Alt 02 URL',
                        3=> 'Image Alt 03 URL',
                        4=> 'Image Alt 04 URL',
                        5=> 'Image Alt 05 URL',
                        6=> 'Image Alt 06 URL',
                        7=> 'Image Alt 07 URL',
                        8=> 'Image Alt 08 URL',
                        9=> 'Image Alt 09 URL',
                        10=> 'Image Alt 10 URL',
                        11=> 'Image Alt 11 URL',
                        12=> 'Image Alt 12 URL',
                        13=> 'Image Alt 13 URL',
                        14=> 'Image Alt 14 URL',
                        15=> 'Image Alt 15 URL',
                        16=> 'Image Alt 16 URL',
                        17=> 'Image Alt 17 URL',
                        18=> 'Image Alt 18 URL',
                        19=> 'Image Alt 19 URL',
                        20=> 'Image Alt 20 URL'

                        );
                        $data[0]=$csv_header;

                        /* Get orders collection of pending orders, run a query */
                        $_collection = Mage::getModel('catalog/product')->getCollection()
                        ->addAttributeToSelect('*'); // ONLY AS EXAMPLE - DONT SELECT ALL ATTRIBUTES, VERY VERY BAD!
                        //$_collection->getSelect()->limit(20);
                        $products = array();

                        foreach ($_collection as $key => $_product) {

                        $gallery_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
                        $items = array();
                        $data[$key][0]=$_product->getSku();
                        $v=1;
                        foreach($gallery_images as $g_image) {
                        $items = $g_image['url'];
                        $data[$key][$v++]=$g_image['url'];
                        }

                        }



                        //echo '<pre>';
                        //print_r($data);


                        header('Content-Type: text/csv');
                        header('Content-Disposition: attachment; filename="productMediaImages.csv"');

                        $fp = fopen('php://output', 'wb');
                        foreach ($data as $line) {
                        fputcsv($fp, $line, ',');
                        }
                        fclose($fp);
                        ?>





                        share|improve this answer




























                          0














                          I think NO, I did not find this option in magento 1.9. I created a php script which will fetch and create csv file with these product images. Put this file in root and run. Change csv header according to your need.



                              <?php
                          error_reporting(E_ALL);
                          ini_set("memory_limit", "100000M");

                          require_once('app/Mage.php'); //Path to Magento
                          umask(0);
                          Mage::app("default");
                          Mage::init();

                          // Set an Admin Session
                          Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
                          Mage::getSingleton('core/session', array('name' => 'adminhtml'));
                          $userModel = Mage::getModel('admin/user');
                          $userModel->setUserId(1);
                          $session = Mage::getSingleton('admin/session');
                          $session->setUser($userModel);
                          $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());

                          $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
                          $data=array();
                          $csv_header = array(
                          0=> 'SKU*',
                          1=> 'Image Alt 01 URL',
                          2=>'Image Alt 02 URL',
                          3=> 'Image Alt 03 URL',
                          4=> 'Image Alt 04 URL',
                          5=> 'Image Alt 05 URL',
                          6=> 'Image Alt 06 URL',
                          7=> 'Image Alt 07 URL',
                          8=> 'Image Alt 08 URL',
                          9=> 'Image Alt 09 URL',
                          10=> 'Image Alt 10 URL',
                          11=> 'Image Alt 11 URL',
                          12=> 'Image Alt 12 URL',
                          13=> 'Image Alt 13 URL',
                          14=> 'Image Alt 14 URL',
                          15=> 'Image Alt 15 URL',
                          16=> 'Image Alt 16 URL',
                          17=> 'Image Alt 17 URL',
                          18=> 'Image Alt 18 URL',
                          19=> 'Image Alt 19 URL',
                          20=> 'Image Alt 20 URL'

                          );
                          $data[0]=$csv_header;

                          /* Get orders collection of pending orders, run a query */
                          $_collection = Mage::getModel('catalog/product')->getCollection()
                          ->addAttributeToSelect('*'); // ONLY AS EXAMPLE - DONT SELECT ALL ATTRIBUTES, VERY VERY BAD!
                          //$_collection->getSelect()->limit(20);
                          $products = array();

                          foreach ($_collection as $key => $_product) {

                          $gallery_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
                          $items = array();
                          $data[$key][0]=$_product->getSku();
                          $v=1;
                          foreach($gallery_images as $g_image) {
                          $items = $g_image['url'];
                          $data[$key][$v++]=$g_image['url'];
                          }

                          }



                          //echo '<pre>';
                          //print_r($data);


                          header('Content-Type: text/csv');
                          header('Content-Disposition: attachment; filename="productMediaImages.csv"');

                          $fp = fopen('php://output', 'wb');
                          foreach ($data as $line) {
                          fputcsv($fp, $line, ',');
                          }
                          fclose($fp);
                          ?>





                          share|improve this answer


























                            0












                            0








                            0







                            I think NO, I did not find this option in magento 1.9. I created a php script which will fetch and create csv file with these product images. Put this file in root and run. Change csv header according to your need.



                                <?php
                            error_reporting(E_ALL);
                            ini_set("memory_limit", "100000M");

                            require_once('app/Mage.php'); //Path to Magento
                            umask(0);
                            Mage::app("default");
                            Mage::init();

                            // Set an Admin Session
                            Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
                            Mage::getSingleton('core/session', array('name' => 'adminhtml'));
                            $userModel = Mage::getModel('admin/user');
                            $userModel->setUserId(1);
                            $session = Mage::getSingleton('admin/session');
                            $session->setUser($userModel);
                            $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());

                            $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
                            $data=array();
                            $csv_header = array(
                            0=> 'SKU*',
                            1=> 'Image Alt 01 URL',
                            2=>'Image Alt 02 URL',
                            3=> 'Image Alt 03 URL',
                            4=> 'Image Alt 04 URL',
                            5=> 'Image Alt 05 URL',
                            6=> 'Image Alt 06 URL',
                            7=> 'Image Alt 07 URL',
                            8=> 'Image Alt 08 URL',
                            9=> 'Image Alt 09 URL',
                            10=> 'Image Alt 10 URL',
                            11=> 'Image Alt 11 URL',
                            12=> 'Image Alt 12 URL',
                            13=> 'Image Alt 13 URL',
                            14=> 'Image Alt 14 URL',
                            15=> 'Image Alt 15 URL',
                            16=> 'Image Alt 16 URL',
                            17=> 'Image Alt 17 URL',
                            18=> 'Image Alt 18 URL',
                            19=> 'Image Alt 19 URL',
                            20=> 'Image Alt 20 URL'

                            );
                            $data[0]=$csv_header;

                            /* Get orders collection of pending orders, run a query */
                            $_collection = Mage::getModel('catalog/product')->getCollection()
                            ->addAttributeToSelect('*'); // ONLY AS EXAMPLE - DONT SELECT ALL ATTRIBUTES, VERY VERY BAD!
                            //$_collection->getSelect()->limit(20);
                            $products = array();

                            foreach ($_collection as $key => $_product) {

                            $gallery_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
                            $items = array();
                            $data[$key][0]=$_product->getSku();
                            $v=1;
                            foreach($gallery_images as $g_image) {
                            $items = $g_image['url'];
                            $data[$key][$v++]=$g_image['url'];
                            }

                            }



                            //echo '<pre>';
                            //print_r($data);


                            header('Content-Type: text/csv');
                            header('Content-Disposition: attachment; filename="productMediaImages.csv"');

                            $fp = fopen('php://output', 'wb');
                            foreach ($data as $line) {
                            fputcsv($fp, $line, ',');
                            }
                            fclose($fp);
                            ?>





                            share|improve this answer













                            I think NO, I did not find this option in magento 1.9. I created a php script which will fetch and create csv file with these product images. Put this file in root and run. Change csv header according to your need.



                                <?php
                            error_reporting(E_ALL);
                            ini_set("memory_limit", "100000M");

                            require_once('app/Mage.php'); //Path to Magento
                            umask(0);
                            Mage::app("default");
                            Mage::init();

                            // Set an Admin Session
                            Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
                            Mage::getSingleton('core/session', array('name' => 'adminhtml'));
                            $userModel = Mage::getModel('admin/user');
                            $userModel->setUserId(1);
                            $session = Mage::getSingleton('admin/session');
                            $session->setUser($userModel);
                            $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());

                            $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
                            $data=array();
                            $csv_header = array(
                            0=> 'SKU*',
                            1=> 'Image Alt 01 URL',
                            2=>'Image Alt 02 URL',
                            3=> 'Image Alt 03 URL',
                            4=> 'Image Alt 04 URL',
                            5=> 'Image Alt 05 URL',
                            6=> 'Image Alt 06 URL',
                            7=> 'Image Alt 07 URL',
                            8=> 'Image Alt 08 URL',
                            9=> 'Image Alt 09 URL',
                            10=> 'Image Alt 10 URL',
                            11=> 'Image Alt 11 URL',
                            12=> 'Image Alt 12 URL',
                            13=> 'Image Alt 13 URL',
                            14=> 'Image Alt 14 URL',
                            15=> 'Image Alt 15 URL',
                            16=> 'Image Alt 16 URL',
                            17=> 'Image Alt 17 URL',
                            18=> 'Image Alt 18 URL',
                            19=> 'Image Alt 19 URL',
                            20=> 'Image Alt 20 URL'

                            );
                            $data[0]=$csv_header;

                            /* Get orders collection of pending orders, run a query */
                            $_collection = Mage::getModel('catalog/product')->getCollection()
                            ->addAttributeToSelect('*'); // ONLY AS EXAMPLE - DONT SELECT ALL ATTRIBUTES, VERY VERY BAD!
                            //$_collection->getSelect()->limit(20);
                            $products = array();

                            foreach ($_collection as $key => $_product) {

                            $gallery_images = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
                            $items = array();
                            $data[$key][0]=$_product->getSku();
                            $v=1;
                            foreach($gallery_images as $g_image) {
                            $items = $g_image['url'];
                            $data[$key][$v++]=$g_image['url'];
                            }

                            }



                            //echo '<pre>';
                            //print_r($data);


                            header('Content-Type: text/csv');
                            header('Content-Disposition: attachment; filename="productMediaImages.csv"');

                            $fp = fopen('php://output', 'wb');
                            foreach ($data as $line) {
                            fputcsv($fp, $line, ',');
                            }
                            fclose($fp);
                            ?>






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 20 mins ago









                            Ashwani PanwarAshwani Panwar

                            1409




                            1409























                                -1














                                You can use Aten Software's free Product Data Exporter to export all the images (main image, small image, swatch image) plus all gallery images to a CSV file. It was just updated this week to support Magento 2+, and is backward-compatible with Magento 1.x.



                                Magento 2.x/1.x Export All Images to CSV File Free Script



                                Gallery images will be exported in the aten_additional_image_url column, as a comma-separated list.






                                share|improve this answer




























                                  -1














                                  You can use Aten Software's free Product Data Exporter to export all the images (main image, small image, swatch image) plus all gallery images to a CSV file. It was just updated this week to support Magento 2+, and is backward-compatible with Magento 1.x.



                                  Magento 2.x/1.x Export All Images to CSV File Free Script



                                  Gallery images will be exported in the aten_additional_image_url column, as a comma-separated list.






                                  share|improve this answer


























                                    -1












                                    -1








                                    -1







                                    You can use Aten Software's free Product Data Exporter to export all the images (main image, small image, swatch image) plus all gallery images to a CSV file. It was just updated this week to support Magento 2+, and is backward-compatible with Magento 1.x.



                                    Magento 2.x/1.x Export All Images to CSV File Free Script



                                    Gallery images will be exported in the aten_additional_image_url column, as a comma-separated list.






                                    share|improve this answer













                                    You can use Aten Software's free Product Data Exporter to export all the images (main image, small image, swatch image) plus all gallery images to a CSV file. It was just updated this week to support Magento 2+, and is backward-compatible with Magento 1.x.



                                    Magento 2.x/1.x Export All Images to CSV File Free Script



                                    Gallery images will be exported in the aten_additional_image_url column, as a comma-separated list.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Aug 18 '16 at 13:11









                                    humbadshumbads

                                    992




                                    992






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Magento Stack Exchange!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f22448%2fcan-default-magento-export-profile-export-all-gallery-images%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        What other Star Trek series did the main TNG cast show up in?

                                        Berlina muro

                                        Berlina aerponto