jayb174 Posted March 7, 2020 Share Posted March 7, 2020 Hello, I am using Prestashop 1.7.6.4 and I'm trying to add a HTML5 mp3 audio to a product so it shows up in the product list. However, when adding the html I get this error message in backoffice "The description_short field (English (English)) is invalid." Is there a code that needs to be modified in order to be able use HTML in short descriptions? Thank You Link to comment Share on other sites More sharing options...
NemoPS Posted March 8, 2020 Share Posted March 8, 2020 I guess the audio tag is not recognized as valid "clean" html. Have a look at the Validate class in classes/ isCleanHtml() method, and see if you are using anything that's banned there. If so, you can add an exception to the code. Link to comment Share on other sites More sharing options...
jayb174 Posted March 9, 2020 Author Share Posted March 9, 2020 Thanks a lot, modifying the /classes/Validate.php file worked and I can now use HTML5 in short description. Now the issue I have is with using a JPlayer to reproduce the mp3 sound. The player doesn't work and the web browser error is "Uncaught ReferenceError: jQuery is not defined" . Any idea what can be the error? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now