Jump to content

Friendly URLs with accents on export.


Recommended Posts

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 naimportovaného 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

×
×
  • Create New...