Custom admin config not working

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!
labros-zotos
Posts: 2
Joined: 07 Aug 2018, 11:00

Custom admin config not working

Post by labros-zotos » 07 Aug 2018, 13:19

Hello everyone,

I am trying to remove some subparts from the product configuration. In my extension, I have the custom config file ( admin.php - https://textuploader.com/dzi58 ) under lib/custom/config and in manifest.php I have the following line for the config folder:

Code: Select all

'config' => array(
		'lib/custom/config',
),
However, when I remove a subpart nothing happens and as the default configuration is used and the custom one is ignored.

Do I have to do anything else to make it work?
Thank you in advance

Laravel Version: 5.6
Aimeos Version: 2018.07
PHP: 7.2
Environment: Homestead Laravel Vagrant Box (Linux Debian)

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

Re: Custom admin config not working

Post by aimeos » 08 Aug 2018, 07:24

Your configuration is merged with the existing confguration. This makes it easy to add or change confiugration options but doesn't allow you to remove configuration. This is only possible if you put the parent array of what you would like to remove into the ./config/shop.php of your Laravel application because that config will overwrite the existing config instead of merging with.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

labros-zotos
Posts: 2
Joined: 07 Aug 2018, 11:00

Re: Custom admin config not working

Post by labros-zotos » 09 Aug 2018, 08:49

Ok I'll do that. Thank you very much for your help

Post Reply