Jump to content

Prestashop Create Categories or select main and parent?


musti4300

Recommended Posts

fvwjtl.jpg

 

Hi

 

I'm a new programmer and not having a good skills. So  how can i select above categories based on products from csv and if categories not existing i can create it`?. The main problem is, selecting parent categories. which have same name

eg look at cases->cases->cases

Accessereis->cases->cases

 

How does the code looks like, also selecting it, and adding it,  if it doesn't exist.

Please can you help me?

 

Edited by musti4300 (see edit history)
Link to comment
Share on other sites

PrestaShop doesn't support importing categories by name when there are duplicate category names. You'll need to manually create a category CSV file that gives each category an ID, then you must use the category IDs instead of category names to import the products. You should put all the product's associated category IDs in a single column separated by commas. For example, the following for the category CSV:

 

ID;Name;Parent category

3;Accessories;2

4;Cases;2

 

and the following for the product CSV:

 

ID;Name;Categories (x,y,z...)

1;product1;3,4

 

You may add more columns than this though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...