Jump to content

detail api sur ajouter un client


Recommended Posts

bonjour,

dans mon module je crée un formulaire pour ajouter un client et mon controleur utilise le code suivant:

 

        $email = Tools :: getValue('mhemail', false);

        $nom = Tools :: getValue('mhnom', false);

        $raisoc = Tools :: getValue('mhraisoc', false);

        $customer = new Customer();

        $customer->lastname=$nom;

        $customer->email=$email;

        $customer->company=$raisoc;

        $this->context->customer = $customer;

je suppose que je dois faire un customer::add(...) en lisant la classe Customer.

y a t'il un descriptif précis pour utiliser ce add.

merci

Edited by jacques123 (see edit history)
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...