Jump to content

how to Add = sign in product title or meta description


Recommended Posts

But we can use it in meta title without possible errors, i think

in file classes/Product.php you can change line:

'meta_title' => 				array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 128), 

instead of isCatalogName use isAnything

 

 

!do it only for test purposes! if everything will be fine you can create override of class

Link to comment
Share on other sites

But we can use it in meta title without possible errors, i think

in file classes/Product.php you can change line:

'meta_title' => 				array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 128),

instead of isCatalogName use isAnything

 

 

!do it only for test purposes! if everything will be fine you can create override of class

 

Hi Milos, would this conflict with Friendly URL if it is enabled and the product name has a "=" in it?

Link to comment
Share on other sites

omg i wanted to say to change this line:
 

'meta_title' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 128),

to change meta title, i edited my post and also your message above to remove 'name' because it can confuse merchants

 

im testing 'name' validate type change right now.

Link to comment
Share on other sites

Hi Milos, would this conflict with Friendly URL if it is enabled and the product name has a "=" in it?

 

 

i tested it

everything works PERFECTLY :D

 

i changed validate types to isAnything and here we are, results:

 

GmWhofN.png

LM5Xvbf.png

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...