Multilang: Auto generate friendly url text for categories

Multilang: Auto generate friendly url text for categories

Mar 09, 2016
Alessio wrote
1) you import to find new products to add to the store (default lang)
2) then you need to manually edit the categories names for other langs
3) the problem is that you need to do double work...

when you edit the category name, the friendly url on the bottom remains that one on the default lang...
and you need to manually rewrite it...

Could you please add a function to autogenerate the friendly url text when you edit the category name for other langs?
0 votes
10 Answers
Avatar image
Mar 09, 2016
Alex Pryshlivskiy agent wrote
Hello again Alessio!
Thanks for suggestion.
By the way, you'll be able to do this with help of this special hack :-) You don't need wait for implementation.
Here it is step-by-step algorythm:

1. Export categories ( Cat ID, Cat Name, Cat-Friendly URL
2. Remove Cat. Friendly URL and leave it empty in CSV file.
3. Change Category name.
4. Import modified file. Don't forget to assign 3 fields:
CatId - for mapping
Cat.Name - we need it to generate new Friendly URL which will be based on Category name
Cat-Friendly URL - assign empty field here - in this case, Store Manager will automatically regenerate this field.
5. After import - your new regenerated URL will be ready.

See screenshots - step 1,2,3,4,5,6

I hope this trick help you :-)
Mar 09, 2016
Alessio wrote
thank you...
I suggest you another, to better match by reference:

1) put you have more .csv files from your supplier or other edit one file but want to avoid to edit all files (so, one for categories, reference for price, quantity and it has even reference in order to match)

2) BUT the two or more files are not identical about the layout

3) one has reference as

the other has
NX.VAGET.011(space) //one space only

at the moment your import literally match any space to the right side as word boundary

so you could make an option to "Auto RTRIM all the fields?" and the user chooses... ;-) and they always match
Mar 09, 2016
Alessio wrote
obviously the user should do this since the 1st import...

eg. my suppliers currently provide .csv with many spaces... probably to let the user better recognize the fields... but from a technical point view this is wrong because not only the files sometimes are more than double in size but there could be issues like this when you edit them
Mar 10, 2016
Alessio wrote
or better... just TRIM, 'cause there could be spaces even before the string... so you can match just the exact word ... avoiding word boundary which doesn't include the delimiter OR you explode the delimiter, compare...then implode the delimiter in place... you could do in any way you want, but the TRIM is easier...
Avatar image
Mar 10, 2016
Alex Pryshlivskiy agent wrote
Thanks for comments, Alsessio!
By the way, have you tried to use trim in Expressions ?
see screenshots

P.S. do you want to suggest to combine all files in one instead of categories, products, customers etc..
Am I right ? please confirm.
Mar 10, 2016
Alessio wrote
yes, sure... no problem for me, I mean for any kind of simplify for anyone and avoid the expression if the user selects that option, the program might TRIM all the fields at once before import/export

bye for now, all the best
Avatar image
Mar 10, 2016
Alex Pryshlivskiy agent wrote
Thanks for comment!
Our software developpers told me that price and ids will be converted into numbers automatically
for example - "123 " ===> 123

Right now they didn't trim text fields automatically.
Mar 10, 2016
Alessio wrote
"for example - "123 " ===> 123"

ok, but there is an issue with the quantity preview:

if your quantity number is ...(delimiter)(space)100(space)(delimiter)

...; 100 ;

if you don't TRIM, the preview for quantity is empty... I don't think that's good to see
Avatar image
Mar 10, 2016
Alex Pryshlivskiy agent wrote
Thanks Alessio,
Give me some time - I'll try to do small test for it.
Mar 16, 2016
System wrote

We haven't heard back from you for last 5 days, please confirm that all questions were answered and issues are resolved. In case you haven't received an answer, please check your spam folder or check the status of ticket online at:

Maybe we are waiting for some information from your side? In this case please get back to us.

In case we haven't replied you back or in case of any misunderstanding, please reply to this mail with all details so we could proceed.

If you do not reply us back, the ticket will be automatically closed within 24 hours.

With kind regards,

The eMagicOne Administration Team