Hello, I want to put a pre-made Odoo form on another platform, such as Wordpress to maximize lead generation. But when I create an API link on Odoo, put it on another page, and when the user submit, Odoo can't seem to get the answer (due to CORS error). If anyone has tried this before, please help me with it. Thanks
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
1
Reply
70
Views
Hi. I've dealt with this before and came to the following conclusions regards the options you have.
- Embed the form into your Wordpress site using an Iframe.
- First create a dedicated contact form page which has hidden header and footer in Odoo.
Just create a new contact form then add this custom code after the first line as shown:
<xpath expr="//header" position="before">
<t t-set="no_header" t-value="True"/>
<t t-set="no_footer" t-value="True"/>
</xpath>
-Finally, create the iframe embed code for your Wordpress site pointing to the dedicated Odoo contact form URL. You can use something like this to help: Connect your Gravity Forms to Odoo ERP Self Hosted integration in 2 minutes | Zapier
You can do something like:
When a form is submitted in Wordpress > Create an Odoo lead and map the relevant data across.
Zapier is free if used for up to 100 tasks per month.
Hope that helps. Best of luck!
Your Answer
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up