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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More