Jump to content
paleoglobe

[SOLVED] cannot add video to product description

Recommended Posts

Hi all,

 

I am trying to add video to my product description.

I click the icon and get the possibility to add using a link or iframe code.

both don't work.

 

If i add them, i see an image of a questionmark, but when i click 'save' I get following notice:

'the field description (dutch) is not valid'.

 

Hope someone can help me.

 

Thanks

Christophe

  • Like 1

Share this post


Link to post
Share on other sites

if you use only <iframe> you can switch option under preferences >general tab

there is an option to allow iframes on description fields.

turn this option of (allow iframes)

  • Like 6
  • Thanks 1

Share this post


Link to post
Share on other sites

thanks, that did the job indeed vekia.

What is the reason why prestashop says that they suggest to have this option off?

Share this post


Link to post
Share on other sites

i bet on latest changes in browsers related to ssl connections.

this feature was added about a year ago.

 

in april 2013 major browsers use feature named "mixed content filtering". This feature blocks external contents included to website - only if they are included without ssl connection to secured websites.

 

At the moment, you can use iframe videos from youtube without any problems, don't worry - everything will work fine, Youtube is secured with ssl :)

  • Like 3

Share this post


Link to post
Share on other sites

if you use only <iframe> you can switch option under preferences >general tab

there is an option to allow iframes on description fields.

turn this option of (allow iframes)

 

and you must change (classes/Validate.php)

public static function isCleanHtml($html, $allow_iframe = false)

to

public static function isCleanHtml($html, $allow_iframe = true)

clean-html-tag3a-655x341.png

 

*** เลือก = Select

*** เปลี่ยนเป็น = Change to

 

clean-html-tag2a-655x360.png

Edited by Jormthepcyber
  • Like 1

Share this post


Link to post
Share on other sites

hello

 

on my website you can find several guides related to tinymce and validate funciton 

there i described step by step what to do

 

unfortunately i don't understand picture that you attached :(

  • Like 1

Share this post


Link to post
Share on other sites

hello

how you're trying to embedd video?

you use some tinymce feature to embed videos?

Share this post


Link to post
Share on other sites

I have same problem. It worked in Presta 1.4. Just inserted the embedde code from the Youtube file. Now in 1.6 I get the same error, and nothing shows.

Share this post


Link to post
Share on other sites

there are two possibilities:

 

1) html purifier is turned on - if so, turn it off

 

 

2) your shop doesnt allow to use iframes

preferences > general and turn on option to allow iframes

  • Like 1

Share this post


Link to post
Share on other sites

I had the same error when using the embed tool to put in a youtube video. I turned on 'accept frames' in preferences and it worked great.

 

thanks!

Share this post


Link to post
Share on other sites

Hi,

 

I cannot disable HTML purifier... I click disable-> Save....When I navigate to other menu in BO and then comeback to Preferences->General the HTML Purifier is still activated.

 

I have tried in Firefox, Chrome, different hosting providers.....same result... please help...

Share this post


Link to post
Share on other sites

solved..

 

just upgraded to 1.6.9 and this solved the problem...thx.

Share this post


Link to post
Share on other sites

than kyou for informations

i think that your problem was related to fact that option to activate purifier was doubled in ps_configuration table

anyway, glad to hear that it started to work

Share this post


Link to post
Share on other sites

Hello,

 

I have a problem. I would like to add a film from our partner website to mine. I try to paste it in long product description by add video, but when I paste the link and save I have problem with flash (I see the film in description, but when I turn play it doesn't start). Could sb help me? (P.S: yes, I switch on iframe)

Share this post


Link to post
Share on other sites

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More