Author Topic: Form details  (Read 3210 times)

Offline maulik 1intl

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +6/-0
    • View Profile
Form details
« 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

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Form details
« Reply #1 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.



« Last Edit: March 02, 2019, 07:50:18 AM by abantecart »
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Form details
« Reply #2 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.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

 

Powered by SMFPacks Social Login Mod