AbanteCart Community

AbanteCart Development => API Development => Topic started by: huyhoang08 on March 06, 2016, 12:06:10 AM

Title: form processing controller?
Post by: huyhoang08 on March 06, 2016, 12:06:10 AM
Today i want to add new form processing controller? example: to save data on my google spreadsheet.
can i able to add new processing controller for form?
please tell me how to do it? thank man.
Title: Re: form processing controller?
Post by: abolabo on March 07, 2016, 02:08:08 PM
You have 2 ways:
1. to Create your own extension.
2 to create form as content page with your custom html inside
what do you prefer?
Title: Re: form processing controller?
Post by: huyhoang08 on March 07, 2016, 10:23:53 PM
i hapy to create my own extension, but i don;t know what api for using please guide me a man. Thanks
Title: Re: form processing controller?
Post by: abolabo on March 09, 2016, 03:57:29 AM
so..
you should to
1. download developer tools for version AbanteCart (just copy this folder  (https://github.com/abantecart/developer_tools_extension/tree/master/v1.2/code/extensions/)into your extensions directory) and install it.
2. create your own extension via admin menu and add some storefront controller in the edit form. This controller will be process you form data . Also do not forget to set hook file of your extension. You will need to change some basic page in admin via hooks... for ex form manager edit from page.
3. Also you need to set tpl for your storefront controller.
4. install and enable your own extension and start to develop :)
Title: Re: form processing controller?
Post by: huyhoang08 on March 15, 2016, 10:22:56 PM
thank you, now i clearly about abantecart docs,