Braini Posted July 15, 2016 Share Posted July 15, 2016 Hi I need to insert a equal sign = in the features. As the sign itself is a not allowed value I tried to put in the HTML name &equal; and = but both are not shwon as the =. Any ideas how to put in HTML for the features? Link to comment Share on other sites More sharing options...
rocky Posted July 16, 2016 Share Posted July 16, 2016 What exactly are you trying to do? It would be better to put the HTML in product.tpl instead of the feature name. Link to comment Share on other sites More sharing options...
Braini Posted July 17, 2016 Author Share Posted July 17, 2016 I'm trying to add a value for a feature which includes an equal sing =. But this doesn't work, as the equal sign is not allowed. Can I really enter the html in product.tpl? Isn't this value written into the database? Link to comment Share on other sites More sharing options...
rocky Posted July 18, 2016 Share Posted July 18, 2016 PrestaShop has decided that names shouldn't contain the = sign. You could override the Validate::isGenericName function to allow the = sign, but I imagine there must be some reason they decided to do this. Another possible solution is to change line 480 of product.tpl in your theme's directory from: {$feature.value|escape:'html':'UTF-8'} to: {$feature.value|escape:'html':'UTF-8'|replace:'=':'='} 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