ankitgala Posted July 31, 2014 Share Posted July 31, 2014 A tricky question for all experts. how to Add = sign in product title or meta description I have a book named "Leadership + Teamwork = Success" i am unable to add that product because of + / = sign in the title. Please help. Prestashop version 1.6.0.8 website - http://buzzpublishing.net/shop Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 31, 2014 Share Posted July 31, 2014 Hi, it is restricted to use those characters because it conflicts with URL aspects. It's not a good idea to have those in the product name because you won't be able to use Friendly URL. Link to comment Share on other sites More sharing options...
vekia Posted August 1, 2014 Share Posted August 1, 2014 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 More sharing options...
benjamin utterback Posted August 1, 2014 Share Posted August 1, 2014 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 More sharing options...
vekia Posted August 1, 2014 Share Posted August 1, 2014 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 More sharing options...
vekia Posted August 1, 2014 Share Posted August 1, 2014 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 i changed validate types to isAnything and here we are, results: Link to comment Share on other sites More sharing options...
ankitgala Posted August 16, 2014 Author Share Posted August 16, 2014 can you explain me what exactly needs to be changed and in what file .. please explain in beginners language. Link to comment Share on other sites More sharing options...
Recommended Posts