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

ConfigurableCountryChoiceType

Class responsible for providing configurable countries list

Type options

Option Type Default value Description

Code example

$builder->add(
    (new Filter('id_country', ConfigurableCountryChoiceType::class))
        ->setTypeOptions([
            'required' => false,
            'contains_states' => true,
            'choice_translation_domain' => false,
        ])
        ->setAssociatedColumn('country_name')
)

Preview example

ConfigurableCountryChoiceType rendered in form example