diff --git a/src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php b/src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php index 0f07c4a0..3ba31515 100644 --- a/src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php +++ b/src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php @@ -325,10 +325,6 @@ protected function addPhoneField(FormBuilderInterface $builder) */ protected function addStoreField(FormBuilderInterface $builder, array $choices) { - if (!$this->getFactory()->getStoreFacade()->isDynamicStoreEnabled()) { - return $this; - } - $builder->add(static::FIELD_STORE_NAME, ChoiceType::class, [ 'label' => 'Store', 'placeholder' => 'Select one', diff --git a/src/Spryker/Zed/Customer/Communication/Form/CustomerUpdateForm.php b/src/Spryker/Zed/Customer/Communication/Form/CustomerUpdateForm.php index c11a79c6..6281c701 100644 --- a/src/Spryker/Zed/Customer/Communication/Form/CustomerUpdateForm.php +++ b/src/Spryker/Zed/Customer/Communication/Form/CustomerUpdateForm.php @@ -73,10 +73,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void */ protected function addStoreField(FormBuilderInterface $builder, array $choices) { - if (!$this->getFactory()->getStoreFacade()->isDynamicStoreEnabled()) { - return $this; - } - $builder->add(static::FIELD_STORE_NAME, ChoiceType::class, [ 'label' => 'Store', 'placeholder' => 'Select one', diff --git a/src/Spryker/Zed/Customer/CustomerConfig.php b/src/Spryker/Zed/Customer/CustomerConfig.php index 52342291..58ae3525 100644 --- a/src/Spryker/Zed/Customer/CustomerConfig.php +++ b/src/Spryker/Zed/Customer/CustomerConfig.php @@ -9,7 +9,6 @@ use Generated\Shared\Transfer\SequenceNumberSettingsTransfer; use Spryker\Shared\Customer\CustomerConstants; -use Spryker\Shared\Kernel\Store; use Spryker\Shared\SequenceNumber\SequenceNumberConstants; use Spryker\Zed\Kernel\AbstractBundleConfig; @@ -200,10 +199,6 @@ public function getRegisterConfirmTokenUrl($token, ?string $storeName = null): s */ public function getCustomerReferenceDefaults(?string $sequenceNumberPrefix = null) { - if (!$sequenceNumberPrefix) { - $storeName = $this->getStoreName(); - } - $sequenceNumberSettingsTransfer = new SequenceNumberSettingsTransfer(); $sequenceNumberSettingsTransfer->setName(CustomerConstants::NAME_CUSTOMER_REFERENCE); @@ -367,14 +362,4 @@ protected function getUniqueIdentifierSeparator() { return '-'; } - - /** - * @deprecated Will be removed in the next major without replacement. - * - * @return string - */ - protected function getStoreName(): string - { - return Store::getInstance()->getStoreName(); - } }