Insert a customer from a external PHP page

Hello.

I’m writting an external form for register customers from a company web.

I have identify the table of customers and I can post a record into the table, but I do’nt know how to put the number or code of the customer rightly with the rule established when i configure the module of customers and suppliers.
The customers inserted from my form appears without codes. I think that a trigger is occuped of that, but no.
Somebody know how?
Thanks.

Sorry. I’m trying to insert in dolibarr 4.0.1

Could you please explain how you created an external page to create a customer?

I would love to be able to add a new customer without logging into dolibarr.

With php code.

I’m programming a basic example of e-shop for dolibarr (not for use directly). When i finish it, i will put the code here.

1 Like