Jump to content

Problem with Print button on CMS page


Palle

Recommended Posts

Hi solvers, I have problem with putting a "Print button" on my CMS-pages. I get the error Property CMS->content is not valid at line 878 in file classes/ObjectModel.php

and at line 878 it says, 

877.                         throw new PrestaShopException($message);
878.                     return $error_return ? $message : false;

 

Funny thing is that, if I try it before saving, it works fine, but then, when I save the code I get the message.

 

The code I use is very simple.

 

<form>

Some text ......
<input type="button" id='winBtn' value="Print" onclick="window.print()">
</form>

 

I use Prestashop version: 1.5.6.2

 

And yes I have click "Accept Iframes".

 

Anyone who have a solution on this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...