musti4300 Posted October 11, 2016 Share Posted October 11, 2016 (edited) 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 nameeg 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 October 11, 2016 by musti4300 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted October 12, 2016 Share Posted October 12, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now