Jump to content

Ajouter un champ dans la page client


agarmur

Recommended Posts

Bonjour j'essaye de rajouter un champ dans le tableau :
image.thumb.png.18aa8fe830a5943b8f875649bc895714.png

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...