How to disable auto setup of locale en-Euro?
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!
-
- Posts: 27
- Joined: 04 Jun 2020, 14:00
How to disable auto setup of locale en-Euro?
Hello, I find hardcoded locale en Euro in app/vendor/aimeos/aimeos-core/lib/mshoplib/setup/MShopAddLocaleData.php in migrate()
But, what if I don't need this? How can I disable this from the setup? Thank you.
Code: Select all
try
{
$localeItem = $localeManager->create();
$localeItem->setSiteId( $siteItem->getSiteId() );
$localeItem->setLanguageId( 'en' );
$localeItem->setCurrencyId( 'EUR' );
$localeItem->setStatus( 1 );
$localeManager->save( $localeItem, false );
}
catch( \Aimeos\MW\DB\Exception $e ) // already in the database
{
$this->status( 'OK' );
return;
}
Re: How to disable auto setup of locale en-Euro?
At the moment, it can't be removed but in the future it should be created only if there's no entry in the mshop_locale table for that site.
You can disable the locale item by setting it's status to "disabled". Then, it won't show up in the frontend.
You can disable the locale item by setting it's status to "disabled". Then, it won't show up in the frontend.
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