dalexander Posted April 22, 2017 Share Posted April 22, 2017 I am so sick and tired of Prestashop.I run a collectible diecast store and many of my product titles have # signs in them. Well guess what, Prestashop doesn't allow it! I enter in the product and save it and it erases all my data because it's not supported and I forget! This is a time drain and a real pain in the ass! If you're thinking about using Prestashop, I advise going against it! My future sites won't be using Prestashop but instead I will go back to Magento! 2 Link to comment Share on other sites More sharing options...
Daresh Posted April 22, 2017 Share Posted April 22, 2017 To allow # all you need to do is to remove the # sign in Validate.php isCatalogName function: public static function isCatalogName($name) { return preg_match(Tools::cleanNonUnicodeSupport('/^[^<>;=#{}]*$/u'), $name); } Or create a simple override as described here. So start looking for solutions, stop complaining. 4 Link to comment Share on other sites More sharing options...
selectshop.at Posted April 22, 2017 Share Posted April 22, 2017 @ dalexander - The reason why Prestashop does not allow #, is a security reason.In html/php this character specifies an "Anchor"/"fragment identifier", or a position on the page, and allows you to "jump" or "scroll" to that position on the page. However, nowadays it's usually used with AJAX-based pages since changing the hash can be detected using JavaScript and allows you to use the back/forward button without actually triggering a full page reload. Here you can learn more about characters (Safe, unsafe, reserved) in URL's: https://perishablepress.com/stop-using-unsafe-characters-in-urls/ Link to comment Share on other sites More sharing options...
vekia Posted April 23, 2017 Share Posted April 23, 2017 personally i dont know any ecommerce engine that allows to use hashes in the products name 2 Link to comment Share on other sites More sharing options...
web-design-milano Posted April 23, 2017 Share Posted April 23, 2017 I agree with @daresh about looking for solutions, but I think it is a valid point that, and frustrating the way product pages and cms pages give an error when you try to save, kick you out of edit mode, and you lose the changes you made. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 23, 2017 Share Posted April 23, 2017 Well, you want a software with security issues only for that it is allowed to add hashes ? Perhaps, I didn't explained it on my previous post: Hashes in URL are not allowed, because you can execute scripting from the URL and hack software/servers ! Personally I prefer to use a software without security risks, and this is also why Prestashop doesn't sucks, but users without know-how not knowing what is behind of this "not allow" BTW I don't understand why you want to use hashes in the URL. Serps ignore fragment identifiers, so there is also no surplus for SEO purposes. 1 Link to comment Share on other sites More sharing options...
pause4paws Posted April 23, 2017 Share Posted April 23, 2017 (edited) @dalexanderIf you think PrestaShop sucks you shouldn't go near magento. It's horrible. I started out with magento and escaped to PS and now I'm with thirty bees. Edited April 23, 2017 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
dalexander Posted April 23, 2017 Author Share Posted April 23, 2017 I never had a problem with Magento outside the fact that it's bloated and requires more server resources. I was able to use # signs on Magento but that was back in 2008. Link to comment Share on other sites More sharing options...
pause4paws Posted April 23, 2017 Share Posted April 23, 2017 (edited) You may want to take a look at a demo of Magento before switching. Things have changed a lot. Edited April 23, 2017 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted April 24, 2017 Share Posted April 24, 2017 I never had a problem with Magento outside the fact that it's bloated and requires more server resources. I was able to use # signs on Magento but that was back in 2008. I'm too an ex Magento user. Changed from Magento to Prestashop, but in 2009, so years ago. I never will go back. Prestashop is my preferred choice. BTW, why do you want to have hashes in URL ? Simply cannot follow why you want to open security lacks (DOM XSS scripting) on your software and server. On Post #2 Daresh named you the way, if you really want to add hashes ! I think that in meantime also with Magento you will need to adapt the core. From what I remember Magento had by default problems with special characters (for ex. Greek and Arabic), this was never the case for Prestashop. Link to comment Share on other sites More sharing options...
fgwapo Posted October 24, 2017 Share Posted October 24, 2017 same here.. wasted lots of time.. NEVER EVER EVER USE PRESTASHOP!!! ITS A MONEY TRAP! 1 1 Link to comment Share on other sites More sharing options...
godlo Posted January 17, 2018 Share Posted January 17, 2018 (edited) On 23/4/2017 at 12:54 PM, selectshop.at dice: BTW I don't understand why you want to use hashes in the URL. Serps ignore fragment identifiers, so there is also no surplus for SEO purposes. Is not exactly true... try to search for: 30 ferrari diecast and for: #30 ferrari diecast The results are (not so much) different. Take a look to the number of results too. And he didn't ask for hashes in the URL but in the product TITLE. Edited January 17, 2018 by godlo (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted January 17, 2018 Share Posted January 17, 2018 5 hours ago, godlo said: Is not exactly true... try to search for: 30 ferrari diecast and for: #30 ferrari diecast The results are (not so much) different. Take a look to the number of results too. And he didn't ask for hashes in the URL but in the product TITLE. You are right. But in product title you can add what you want. In URL you can't use hashes. Simply change meta-title manually for these products. Taking your example, there is no hash in URL but in title, and this is also possible with Prestashop. Try by following the sample below. You will have same result of your sample when you inspect product with apropriate SEO tool: Name = URL and not necessary TITLE of the product in Prestashop. TITLE for products you can change on tab SEO and there you of course can use #. 1 Link to comment Share on other sites More sharing options...
nubreed Posted January 31, 2021 Share Posted January 31, 2021 On 4/22/2017 at 7:33 PM, dalexander said: I am so sick and tired of Prestashop. I run a collectible diecast store and many of my product titles have # signs in them. Well guess what, Prestashop doesn't allow it! I enter in the product and save it and it erases all my data because it's not supported and I forget! This is a time drain and a real pain in the ass! If you're thinking about using Prestashop, I advise going against it! My future sites won't be using Prestashop but instead I will go back to Magento! Totaly true every upgrade is a nightmare Link to comment Share on other sites More sharing options...
Ali Samie Posted July 25, 2022 Share Posted July 25, 2022 This causes security issues. I wonder why people do that. Where on earth a simple customer searches for this sign # in a website? It does not make any sense! Link to comment Share on other sites More sharing options...
Polylight Posted July 25, 2022 Share Posted July 25, 2022 Il y a 7 minutes, stifler97 disait : Cela cause des problèmes de sécurité. Je me demande pourquoi les gens font cela. Où diable un simple client recherche ce signe # dans un site web ? Cela n'a aucun sens ! There are businesses such as mechanics or hydraulics or special characters are important in product research Link to comment Share on other sites More sharing options...
Ali Samie Posted July 25, 2022 Share Posted July 25, 2022 1 minute ago, Polylight said: There are businesses such as mechanics or hydraulics or special characters are important in product research I did not know that some people actually need to use that characters. So the best is to override that method of validation. But this will be specific to your shop. 1 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