Iframes Prestashop 1.6

  • Profile Image
    refancolombia
    Asked on October 30, 2017 at 02:06 PM

    Hello, Im trying to add the iframe code to my prestashop, but in the time I try to save the new cms page the code I paste 2 things occur: First prestashop give me an error message " Field content not valid" and second prestashop change some part of the code.

    To go to the point, the part of the code who chage is 


    <script type="text/javascript"> for <script>// <![CDATA[


    Mant thks for your help.

  • Profile Image
    david
    Answered on October 30, 2017 at 02:24 PM

    Try adding the iFrame code without the script portion as described in the following guide:

    https://www.jotform.com/help/266-How-to-add-a-form-to-your-PrestaShop-website

    Here would be the code you would add:

    <iframe id="JotFormIFrame-72996812898682" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotformz.com/refancolombia/registro-club-vip-refan-colombia" frameborder="0" style="width: 1px; min-width: 100%; height:539px; border:none;" scrolling="no"> </iframe>

    If that still does not work, let us know and we will see what else we can do.

  • Profile Image
    refancolombia
    Answered on October 30, 2017 at 02:26 PM

    Hello David. Already done but still no work. I read your threads and tried a few things.

  • Profile Image
    david
    Answered on October 30, 2017 at 02:32 PM

    Check to ensure that allow iFrames on HTML Fields is enabled:

    On your Prestashop backend, go to your Administration Panel > Preferences > General > Allow iFrames on HTML Fields. Change it to "YES" and save it.

    2016-06-11_05-54-33_001001.png

    If that is already enabled, let us know if there are any errors or anything like that when adding the form.  Also let us know the URL of the page your form is added to so we can check the page.

  • Profile Image
    david
    Answered on October 30, 2017 at 02:47 PM

    The message you're getting implies that you have pasted invalid content in Prestashop. Just make sure you follow the guide strictly, as is, and it should work.

    Complete guide: How-to-add-a-form-to-your-PrestaShop-website

    You may also try another method by using an iFrame Wrapper Tool which is offered as a Prestashop add-on. However, be advised that this is not free and you must purchase the plugin to enable it for use in your store.

    Or you can also try the workaround described here:

    https://www.prestashop.com/forums/topic/273632-solved-cant-add-an-iframe-in-cms-page-155/?tab=comments#comment-1372223

  • Profile Image
    refancolombia
    Answered on October 30, 2017 at 03:25 PM

    thks for your answer. Im copying the text to avoid any mistake , but always have the same error Content field is not valid.

    Anyways, I ll try to find another way.

    Regards.

  • Profile Image
    david
    Answered on October 30, 2017 at 03:47 PM

    Try the following Embed code to see if using a custom URL has anything to do with it:

    <iframe width="500" height="687" style="width: 100%; height: 687px; border: none;" id="JotFormIFrame" src="https://form.jotformz.com/72996812898682" frameborder="0" scrolling="no"></iframe>