My Caldera Forms form collects data related to a person, but also related to his/her company.
I need to create both the contact and the company on Mautic using this processor.
I’m able to implement the feature but I need guidance on how to proceed (which is the development flow? Do I need to check the code in any way before committing? Any info that I need to know before proceeding?).
I think this can be done with a really simple code.
In Mautic all fields related to companies are like “company*” (ex.: companyaddress1, companyemail, etc.).
This means that we can check if the current mapped field starts with “company”: if it starts with “company” we can add the field to a second array “companyData”.
So, the steps to create both companies and contacts are those:
1. Cycle over each field;
2. If starts with “company”, add to $companyData
array
; if it doesn’t start with “company”, add to $contactData
array
;
3. If not empty $contactData
, prepare and submit the request to Mautic’s endpoint contacts
;
4. If not empty $companyData
, prepare and submit the request to Mautic’s endpoint companies
.
What do you think about this?
]]>This is the full error:
[20-Aug-2019 10:55:09 UTC] PHP Notice: Undefined index: contact in /var/www/serendipityhq.com/public_html/wp-content/plugins/nettantra-caldera-forms-mautic-integration/core.php on line 86
To get it I had to activate the debug mode and the logs.
Now I’m going to further debug it.
]]>Installation and all configuration made according to your instructions, Mautic user created with full permission to create and update contacts. but plugin doesnt work and doesnt give me any error message.
Mautic ver 2.15.1
NetTantra Plugin ver 1.0.1
Caldera Forms ver 1.8.6
WordPress ver 5.2.2
PHP ver 7.0
Any tip?
Best regards,
Robson
]]>9. Setup the fields as necessary using the Mautic Field machine names as “Mautic Field Aliases” and Caldera Field Shortcodes as “Values to Send”
I couldnt make that work, is it possible to have an image or video?
Thanks a lot!
]]>Configuration made, login with full permission creation, API configuration according to instruction, Processor Caldera configured. Does not work.
]]>Hello
Please check below error
Plugin could not be activated because it triggered a fatal error.
Thanks
]]>