How to Add Attribute Options of Specific Type With Custom Controller
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 86
- Joined: 12 Jan 2019, 15:17
How to Add Attribute Options of Specific Type With Custom Controller
I want to add option of specific attribute type from my custom controller
Please guide about this
Thanks.
Please guide about this
Thanks.
Re: How to Add Attribute Options of Specific Type With Custom Controller
Can you explain by example?
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
-
- Posts: 86
- Joined: 12 Jan 2019, 15:17
Re: How to Add Attribute Options of Specific Type With Custom Controller
Use the Aimeos attribute manager to create items automatically in your code:
Code: Select all
$manager = \Aimeos\MShop::create( $context, 'attriubte' );
$item = $manager->createItem()
->setDomain( 'product' )->setType( 'mytype' )
->setCode( 'demo-xyz' )->setLabel( 'Demo XYZ' );
$manager->saveItem( $item );
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