csv import: assign product to 1..n categories

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
columbo
Advanced
Posts: 125
Joined: 09 Oct 2019, 09:42

csv import: assign product to 1..n categories

Post by columbo » 24 Oct 2023, 17:13

Hi,

a product should be listed in one or multiple (sub-)categories. The number of (sub-)categories is not defined yet -> listing a product in 1, 2 or n subcategories.

According to https://aimeos.org/docs/2023.x/cronjobs ... sv-import/ we have to define 1..n 'catalog.code' mappings in shop.php - correct?
Is there also an option to define one 'catalog.code' in shop.php mapping and add additonal categories (catalog.code) with new-line in csv?

Thank you!

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: csv import: assign product to 1..n categories

Post by aimeos » 26 Oct 2023, 07:34

You can add several category codes in one field separated by new lines, e.g.:

Code: Select all

,"cat-1
cat-2
cat-3",
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply