Supplier Address Decorator Not Working
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!
Re: Supplier Address Decorator Not Working
The correct directory is "ext/<yourextensionname>/lib/custom/src/MShop/Supplier/Manager/Decorator/SupplierDecorator.php"
Your configuration is wrong and must be:rahulhhh wrote: ↑25 Apr 2022, 04:39 same way i have created supplier address decorator in ext->liv->custom->src->mshop->supplier->manager->address->supplieraddressdecorator for adding fields in supplier address table and configured it in mshop in following way.
return [
'supplier' => [
'manager' => [
'address' => [
'local' => ['SupplierAddressDecorator']
]
]
]
];
this is not working. not fetching the data from new fields and not saving data as well. i have added decorator files below.
Code: Select all
return [
'supplier' => [
'manager' => [
'decorators' => [
'local' => ['SupplierDecorator']
],
'address' => [
'decorators' => [
'local' => ['SupplierAddressDecorator']
]
]
]
]
];
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
Re: Supplier Address Decorator Not Working
Your code looks OK. Check in getSaveAttributes() if your decorator is called at all.
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
Re: Supplier Address Decorator Not Working
Most likely, your configuration is still not correct.
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