Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
70 Views

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

Avatar
Discard

Hi. I've dealt with this before and came to the following conclusions regards the options you have.

  1. 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!

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!