PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

ShopRestrictionCheckboxType

This class displays customized checkbox which is used for shop restriction functionality.

Type options

Option Type Default value Description

Code example

$builder->add($form->getName() . $suffix, ShopRestrictionCheckboxType::class, [
    'attr' => [
        'is_allowed_to_display' => $isAllowedToDisplay,
        'data-shop-restriction-target' => $form->getName(),
    ],
]);