hi, im trying to create a simple form for customer to checkin while he visits the store.
trying to see if i can build a module which displays basic form data for customer to fill in
like
1)customer name
2)address
3)email
4)phone
5)referall details etc?
can someone help me understand where to start to create a module (form) to collect the details and how to make the data available for later ERP actions like creating a ticket / orders for the same customer.?
any quick help would be much appreciated or advice details on where / how to start this .
First create the database table with any sql tool or simply by creating the sql file in the sql folder of the module and then activate the module it will run the sql file therefore create your new tables
then copy the “create fromtable” in the dev folder of dolibarr and execute the php from command with the table name as param.
finally change the php file generated :
- mymodule should be replace with your module name
- remove the out. prefix
- copy the files in your module folder (including the libs and ajax handler files)
- correct the error fo the generqted file (it will have some
I still need to improve the script to create the test class and to create business/visualation classes to have a cleaner code but current output helped me a lot