Skip to content

Commit

Permalink
Merge pull request PrestaShop#37803 from boherm/PrestaShop#37320-fix-…
Browse files Browse the repository at this point in the history
…disabling-multistore
  • Loading branch information
boherm authored Jan 22, 2025
2 parents 21caa62 + 82019a4 commit d7e2539
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
),
])
->add('multishop_feature_active', SwitchType::class, [
'disabled' => !$this->isContextDependantOptionEnabled(),
// Disable the checkbox if multistore feature is active and at least 2 shops exist (@see PrestaShop/PrestaShop/Adapter/Feature/MultistoreFeature)
'disabled' => $this->isMultistoreUsed,
'label' => $this->trans('Enable Multistore', 'Admin.Shopparameters.Feature'),
'help' => $this->trans(
'The multistore feature allows you to manage several front offices from a single back office. If this feature is enabled, a Multistore page is available in the Advanced Parameters menu.',
Expand Down

0 comments on commit d7e2539

Please sign in to comment.