Bojkas Posted November 21, 2012 Share Posted November 21, 2012 Hi, I have a problem with importing goods that my name added to the URL with accents. In manual adding products that I solved by editing the JS / admin.js str2url and added: str = str.replace (/ [\ u00E1] / g, 'a'); str = str.replace (/ [\ u010D] / g, 'c'); str = str.replace (/ [\ u010F] / g, 'd'); str = str.replace (/ [\ u00E9 \ u011B] / g, 'e'); str = str.replace (/ [\ u00ED] / g, 'i'); str = str.replace (/ [\ u0148] / g, 'n'); str = str.replace (/ [\ u00F3] / g, 'o'); str = str.replace (/ [\ u0159] / g, 'r'); str = str.replace (/ [\ u0161] / g, 's'); str = str.replace (/ [\ u0165] / g, 't'); str = str.replace (/ [\ u00FA \ u016F] / g, 'u'); str = str.replace (/ [\ u00FD] / g, 'y'); str = str.replace (/ [\ u017E] / g, 'z'); It works perfectly and manually add whatever is in the original URL. Once Importing CSV accents are added to URL. I wanted to do this in Excel, but I only have the starter version that can not teach a Macro and it would probably just completely, instead of a single column. Thank you for your help. EDIT: I came for one thing. When I look into import product in SEO / friendly URL is alright. Diacritics are thus eliminates the administration. But as long as the product in the administration I press the save button, displays the URL with accents. Link to comment Share on other sites More sharing options...
musicmaster Posted November 22, 2012 Share Posted November 22, 2012 What is stored in the "link_rewrite" fields of the products in the database? Link to comment Share on other sites More sharing options...
Bojkas Posted November 22, 2012 Author Share Posted November 22, 2012 Im not sure, what you mean. Here is URL after import - http://fii.cz/ngtfz If i look in the product on admin - http://fii.cz/xfzps Im not understand, in product is everything fine, but URL is still with diacritics. Link to comment Share on other sites More sharing options...
musicmaster Posted November 22, 2012 Share Posted November 22, 2012 What I mean is that you should have a look at the database with phpMyAdmin. Link to comment Share on other sites More sharing options...
Recommended Posts