Page 1 of 1

How to disable auto setup of locale en-Euro?

Posted: 11 Oct 2021, 13:58
by mr.zherart
Hello, I find hardcoded locale en Euro in app/vendor/aimeos/aimeos-core/lib/mshoplib/setup/MShopAddLocaleData.php in migrate()

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;
		}
But, what if I don't need this? How can I disable this from the setup? Thank you.

Re: How to disable auto setup of locale en-Euro?

Posted: 12 Oct 2021, 16:54
by aimeos
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.