Skip to content

Commit

Permalink
fix(settings): remove settings that aren't available
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 14, 2023
1 parent d7a4184 commit d413ff1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Pdk/Base/PsPdkBootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use MyParcelNL\Pdk\Base\PdkBootstrapper;
use MyParcelNL\Pdk\Base\Support\Collection;
use MyParcelNL\Pdk\Facade\Pdk;
use MyParcelNL\Pdk\Settings\Model\CheckoutSettings;
use MyParcelNL\Sdk\src\Support\Str;
use PrestaShop\PrestaShop\Core\Exception\ContainerNotFoundException;
use PrestaShopBundle\Exception\InvalidModuleException;
Expand Down Expand Up @@ -91,6 +92,19 @@ protected function getConfig(string $version, string $name): array

'legacyControllerSettings' => value('MyParcelNLAdminSettings'),

/**
* Settings that are not available in the module.
*/

'disabledSettings' => value([
CheckoutSettings::ID => [
CheckoutSettings::ALLOWED_SHIPPING_METHODS,
CheckoutSettings::DELIVERY_OPTIONS_CUSTOM_CSS,
CheckoutSettings::DELIVERY_OPTIONS_POSITION,
CheckoutSettings::USE_SEPARATE_ADDRESS_FIELDS,
],
]),

'moduleInstance' => factory(static function (): Module {
$name = Pdk::getAppInfo()->name;

Expand Down

0 comments on commit d413ff1

Please sign in to comment.