tags:

views:

191

answers:

6

Dear all,

I want to copy my first category to a second category in Magento. What should I do?

Thanks, Wesley.

A: 

You can't with the admin interface, you need. to create a script with the category api.

Alex
oh, could you give me a script please?
Wesley
A: 

Sorry you cannot copy/paste Category directly in Magento Admin panel through the interface, which Catalog Products can offer with the help of "Duplicate" button.

I suppose you will need to write a script fetching the category details by first loading the Category model with the required Category ID.

Knowledge Craving
A: 

This forum post contains instructions and code for importing your categories from a CSV file.

Good luck, JD

Jonathan Day
A: 

I think you want to export products from a specific cat and import it to another one. if it's so use the steps bellow:

  • login to magento backend
  • navigate to System -> Import/Export
  • Create a new advanced profile for your cat
  • export it

now import it in the same fashion

Nurul Ferdous
+1  A: 

If you want to do it in a programmatic way you can use the Magento API. Use:

catalog_category.info - to read a category
catalog_category.create - to create a new one by copying data from existing.

Here are the docs for category API

Elzo Valugi