agarmur Posted June 15, 2023 Share Posted June 15, 2023 Bonjour j'essaye de rajouter un champ dans le tableau : J'ai essayer de override mais sans sucée : <?php use PrestaShopBundle\Form\Admin\Sell\Customer\CustomerType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\FormBuilderInterface; class CustomerTypeOverride extends CustomerType { public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('nouvelle_case', CheckboxType::class, [ 'label' => $this->trans('Nouvelle Case', 'Admin.Global'), 'required' => false, ]); } } Je fais ça dans un module que je créer moi même, est-ce que c'est possible de faire cela ? Cordialement Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now