Product csv import: new attribute type
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product csv import: new attribute type
Is it possible to add a new attribute type during the product import?
I´ve created a decorator class and before the main import is called, I transform the incoming product data to the aimeos-schemata.
Now there are new attribute types incoming (e.g. pages for photobooks) an i would create these new type "on the fly".
I´ve created a decorator class and before the main import is called, I transform the incoming product data to the aimeos-schemata.
Now there are new attribute types incoming (e.g. pages for photobooks) an i would create these new type "on the fly".
Re: Product csv import: new attribute type
You can use the attribute/type manager to add new types on the fly:
Code: Select all
$manager = \Aimeos\MShop::create( $context, 'attribute/type' );
$manager->save( $manager->create()->setCode( 'pages' )->setLabel( 'Pages ) );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star