• Closed by: Marek
  • Closed on: 12.08.19, 13:16
  • Reason: Closed
  • Comment: Glad to help!

Ticket #15318 - CMS PAGE - Content field is invalid

Hello Marek,

Hello Marek, hope you are well,
`

The CMS pages are extremely limited. I can’t integrated specific source code.
I have bought a module : Buy Button Premium v1.0.2 - by PrestaShop and generated the following code :
The module allow us to add a “buy button” in a CMS
As I try to create a page (Design > Pages > create a new page.) and add the bellow code I have the error message :The content field is invalid.

              <div id="psbuybutton-card-2"></div>
              <script src="http://www.chezbelette.com/modules/psbuybutton/widget/widget.js"
                  id="2"
                  model="card"
                  domain="http://www.chezbelette.com/">
              </script>
          

I have tire with other integration (Mailchimp, Typform etc…) without any success.

If you try to create a “test page” and past the source code above you’ll have the same issue.

What can I do to fix the issue ? It’s really important for us.

Regards.

Comments

Marek 10 Aug 2019, 10:55

you can’t add js code to the content of cms page through page builder.
You can add it only directly to the code. Use the file /themes/alysum/templates/_partials/footer.tpl