Jump to content

unable to use javascript in small product description


Recommended Posts

Trying to install a video player using javascript in my tiny mce editor for the small product description and the javascript is not being displayed.

the following code gets inserted after saving off the tiny mce:
Any ideas?

Thanks very much

Link to comment
Share on other sites

By default, PrestaShop strips all HTML code from the short product description. You'll need to change the following on line 9 (in PrestaShop v1.3) of product-list.tpl in your theme's directory from:


<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}



to:


<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}

Link to comment
Share on other sites

  • 4 months later...
  • 5 years later...
×
×
  • Create New...