AbanteCart Community

Shopping Cart Operations => Support => Template Support => Topic started by: maulik 1intl on March 02, 2019, 05:40:04 AM

Title: Form details
Post by: maulik 1intl on March 02, 2019, 05:40:04 AM
Hello Friend

               Great to use abantecart but i need small help that i am create single filed custom form filed and it's work fine and also so me success massage but how to see this details to admin site or send email to admin to form is submit.


Thank you
Title: Re: Form details
Post by: abantecart on March 02, 2019, 07:48:37 AM
I assume you refer to form manager. Here is the manual for UI side.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/13500486/Forms+Manager

If you need to have a special processing after form submit, you need to develop a custom controller to process your form and register it in the ac_forms table.

Here is a default form that we have that you can use as example:
INSERT INTO `ac_forms` VALUES (2,'ContactUsFrm','content/contact','content/contact/success',1);

Here is the controller example:
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/content/contact.php

Your custom controller can be placed in any location including an extension. Make sure you provide correct path in the table insert.



Title: Re: Form details
Post by: abantecart on March 02, 2019, 07:51:41 AM
I assume you refer to form manager. Here is the manual for UI side.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/13500486/Forms+Manager

If you need to have a special processing after form submit, you need to develop a custom controller to process your form and register it in the ac_forms table.

Here is a default form that we have that you can use as example:
INSERT INTO `ac_forms` VALUES (2,'ContactUsFrm','content/contact','content/contact/success',1);

Here is the controller example:
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/content/contact.php

Your custom controller can be placed in any pages/.. location including an extension. Make sure you provide correct path in the table insert.