Jump to content

How to put in = sign in features


Braini

Recommended Posts

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

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?

example.JPG

Link to comment
Share on other sites

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

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...