Giter Site home page Giter Site logo

export-import-categories-in-magento-1's Introduction

Export-Import-Categories-in-Magento-1

How To Export and Import Categories in Magento

Step 1 of 4: Write the following code in category.php and place it to root directory. Run this file at browser http://www.example.com/exportCategories.php. It will generate a CSV file Categories.csv (export all categories).

Step 2 of 4: Import the categories

         create config.xml  at app\code\local\ImpCat\Catalog\etc\config.xml

         create Category.php at app\code\local\ImpCat\Catalog\Model\Convert\Adapter\Category.php

         create ImpCat_All.xml  at  app\etc\modules

Step 3 of 4: create dataflow advanced profile at

        admin > system >Import/Export > Dataflow - Advanced Profile 
        
        and give the Profile Name is 'category import'

           

  //place the following code to its Actions xml box 

    <action type="dataflow/convert_adapter_io" method="load">
       <var name="type">file</var>
       <var name="path">var/import</var>
       <var name="filename"><![CDATA[Categories.csv]]></var>
       <var name="format"><![CDATA[csv]]></var>
     </action>
     <action type="dataflow/convert_parser_csv" method="parse">
       <var name="delimiter"><![CDATA[,]]></var>
       <var name="enclose"><![CDATA["]]></var>
       <var name="fieldnames">true</var>
       <var name="store"><![CDATA[0]]></var>
       <var name="number_of_records">1</var>
       <var name="decimal_separator"><![CDATA[.]]></var>
       <var name="adapter">catalog/convert_adapter_category</var>
       <var name="method">parse</var>
     </action>

Step 4:

     Put Categories.csv into var/import/ and
     removed cat_id colums from csv.
     remove first two rows.
     remove all Default Category/ from categories colunn in Categories.csv
     
     Now to Run Profile admin > system > Import/Export > Dataflow-Advanced Profile
     run 'category import' profile  from Run Profile > click 'Run Profile in Popup'
     import of category now start and automatically created category.

export-import-categories-in-magento-1's People

Contributors

sagarppanchal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

export-import-categories-in-magento-1's Issues

error

good evenig i get an error
whait can be??

Inizio esecuzione profilo, attendere prego...
Attenzione: Non chiudere la finestra durante l\'importazione/esportazione dati

Starting Mage_Dataflow_Model_Convert_Adapter_Io :: load
Loaded successfully: "/web/htdocs/www.xxxxxxxxxx.com/home/m/var/import/Categories.csv".
Starting Mage_Dataflow_Model_Convert_Parser_Csv :: parse
Method "parse" not defined in adapter catalog/convert_adapter_category.
Terminata l\'esecuzione del profilo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.