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
The ShopChoiceTreeType
is subtype of MaterialChoiceTreeType
which is configured to be used for shop association input.
Option | Type | Default | Description |
---|---|---|---|
multiple | bool | true |
Whether multiple shops can be selected or not. |
Component | Description |
---|---|
ChoiceTree | Manages interaction of choice tree |
Add ShopChoiceTreeType
to your form.
<?php
use Symfony\Component\Form\AbstractType;
use PrestaShopBundle\Form\Admin\Type\ShopChoiceTreeType;
class SomeType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('shop_association', ShopChoiceTreeType::class);
}
}