[Skip to main content](#vessel-content)

#   v4.0.2 - still wrong aliases from russian words

##

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 1 week ago [\#130862](#130862) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#130862 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")* was created by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")*

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.0
- PHP version -- : 5.3.0
-- Browser(s) name and version -- : ALL

If we use hikashop on russian language there is no option to translitarate russian names of goods to english.

the solve for this problem like here

файла \administrator\components\com_jshopping\controllers\products.php чтобы получилость так:

if ($jshopConfig-&gt;create_alias_product_category_auto &amp;&amp; $post=="") $post = JApplication::stringURLSafe($post);

We know that on the hikashop joomshopping it's ok

please update hikashop business

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

13 years 1 week ago [\#130963](#130963) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#130963 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

It's definitely not that code which would allow you to do that.
HikaShop already uses that code (file administrator/components/com_hikashop/classes/product.php): Code:

function addAlias(&amp;$element){ if(empty($element-&gt;product_alias)){ $element-&gt;alias = $element-&gt;product_name; }else{ $element-&gt;alias = $element-&gt;product_alias; } $app = JFactory::getApplication(); if(method_exists($app,'stringURLSafe')){ $element-&gt;alias = $app-&gt;stringURLSafe(strip_tags($element-&gt;alias)); }else{ $element-&gt;alias = JFilterOutput::stringURLSafe(strip_tags($element-&gt;alias)); } }

It's actually used to handle UTF8 characters in URLs, not to transliterate Russian names.
If you have an example of code, we can potentially add an option, but it's definitely not that code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 1 week ago -  13 years 1 week ago [\#131015](#131015) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131015 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

here is the solve for russian language Code:

function addAlias(&amp;$element){ if(empty($element-&gt;product_alias)){ $element-&gt;alias = $element-&gt;product_name; }else{ $element-&gt;alias = $element-&gt;product_alias; } $element-&gt;alias=ru_RULocalise::transliterate($element-&gt;alias); $app = JFactory::getApplication(); if(method_exists($app,'stringURLSafe')){ $element-&gt;alias = $app-&gt;stringURLSafe(strip_tags($element-&gt;alias)); }else{ $element-&gt;alias = JFilterOutput::stringURLSafe(strip_tags($element-&gt;alias)); }

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Last edit: 13 years 1 week ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile").

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 1 week ago -  13 years 1 week ago [\#131016](#131016) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131016 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

I will search for the international support and write it here later

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Last edit: 13 years 1 week ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 1 week ago -  13 years 1 week ago [\#131047](#131047) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131047 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

I think that here is the solve for the problem
Code:

$lang = JFactory::getLanguage(); $element-&gt;alias = $lang-&gt;transliterate($element-&gt;alias);

but something wrong in your code because transliterator at this point is null...

I'll try to find the problem but if you know it please help

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Last edit: 13 years 1 week ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 1 week ago [\#131054](#131054) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131054 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

I see that you redeclare standart Jlanguage object and may be broke standart transliterate method.

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

13 years 1 week ago [\#131524](#131524) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131524 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

Hi,

Ok, I see what you mean.
Can you try to change the code: Code:

if(is_string($old)) { $old = JFactory::getLanguage($old); }

to: Code:

if(is_string($old)) { parent::__construct($old); $old = JFactory::getLanguage($old); }else{ parent::__construct(); }

in the file administrator/components/com_hikashop/helpers/helper.php and see if that helps ?
That will initialize the JLanguage object in the same way as the default class and that should hopefully make it use the translatiteration system of your language if any.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 6 days ago [\#131580](#131580) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131580 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

this is not help.
At the moment when I try to transliterate with standart joomla method JLanguage must have transliterator data.
I try to trace your code and at this moment there is no transliterator data.
[ ![&#91;IMG](http://i.imgur.com/WjdD9SW.jpg) ](http://i.imgur.com/WjdD9SW.jpg "&#91;IMG")

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 6 days ago -  13 years 6 days ago [\#131581](#131581) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131581 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

I have traced your constructor code and see one strange thing
language at this moment is English! O_O

[ ![&#91;IMG](http://i.imgur.com/TGLUvdN.jpg) ](http://i.imgur.com/TGLUvdN.jpg "&#91;IMG")

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Last edit: 13 years 6 days ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

13 years 6 days ago [\#131590](#131590) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131590 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

Ok, change the line:
parent::__construct();

to:
parent::__construct($old-&gt;lang);

in the helper.php file and it will work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 5 days ago -  13 years 5 days ago [\#131649](#131649) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131649 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

Great!
It is really working!
This is was big problem for Russian and Ukrainian customers. And it was solved!

So I will repeat the steps that needed to be changed.
first in (file administrator/components/com_hikashop/classes/product.php):

the function must be Code:

function addAlias(&amp;$element){ if(empty($element-&gt;product_alias)){ $element-&gt;alias = $element-&gt;product_name; }else{ $element-&gt;alias = $element-&gt;product_alias; } $lang = JFactory::getLanguage(); $element-&gt;alias = $lang-&gt;transliterate($element-&gt;alias); $app = JFactory::getApplication(); if(method_exists($app,'stringURLSafe')){ $element-&gt;alias = $app-&gt;stringURLSafe(strip_tags($element-&gt;alias)); }else{ $element-&gt;alias = JFilterOutput::stringURLSafe(strip_tags($element-&gt;alias)); } }

and in (administrator/components/com_hikashop/helpers/helper.php) file
constructor must be Code:

function __construct($old = null) { if(is_string($old)) { parent::__construct($old); $old = JFactory::getLanguage($old); } else{ parent::__construct($old-&gt;lang); } if(is_object($old)) { $this-&gt;strings = $old-&gt;strings; $this-&gt;override = $old-&gt;override; $this-&gt;paths = $old-&gt;paths; $this-&gt;metadata = $old-&gt;metadata; $this-&gt;locale = $old-&gt;locale; $this-&gt;lang = $old-&gt;lang; $this-&gt;default = $old-&gt;default; $this-&gt;debug = $old-&gt;debug; $this-&gt;orphans = $old-&gt;orphans; } }

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Last edit: 13 years 5 days ago by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 5 days ago [\#131650](#131650) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131650 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

So, Nicolas, could you change the code of Hikashop to include this changes?
It will be helpful for customers of all around the world!

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

13 years 5 days ago [\#131653](#131653) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131653 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

AFter some testing I see one thing - we need to change function in administrator\components\com_hikashop\classes\product.php
like here
because of some users can use "unicodeslugs" flag in configuration

so the final code is here
Code:

function addAlias(&amp;$element){ if(empty($element-&gt;product_alias)){ $element-&gt;alias = $element-&gt;product_name; }else{ $element-&gt;alias = $element-&gt;product_alias; } $config = JFactory::getConfig(); if (! $config-&gt;get('unicodeslugs')) { $lang = JFactory::getLanguage(); $element-&gt;alias = $lang-&gt;transliterate($element-&gt;alias); } $app = JFactory::getApplication(); if(method_exists($app,'stringURLSafe')){ $element-&gt;alias = $app-&gt;stringURLSafe(strip_tags($element-&gt;alias)); }else{ $element-&gt;alias = JFilterOutput::stringURLSafe(strip_tags($element-&gt;alias)); } }

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

13 years 5 days ago [\#131657](#131657) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#131657 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

Yes, we'll include these modifications for next release.

The following user(s) said Thank You: [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[moneymr](/forum/user/30104-moneymr "View moneymr's Profile")**
- [![moneymr's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/30104-moneymr "View moneymr's Profile")
- [ Offline](/forum/user/30104-moneymr)

Less More

- Posts: 105
- Thank you received: 1
-
-

12 years 11 months ago [\#135863](#135863) by [moneymr](/forum/user/30104-moneymr "View moneymr's Profile")  Replied by *[moneymr](/forum/user/30104-moneymr "View moneymr's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#135863 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

Hika 2.2.3 Joomla 3.2
Still does not working!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 314
-
-
-
- [](http://www.d-dd.ru)
-

12 years 11 months ago [\#135934](#135934) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#135934 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

I have tested last version. For me it's working ok.

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14305
-
-

12 years 11 months ago [\#135943](#135943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop don't create aliases for Russian goods](/forum/3-bug-report/863357-v4-0-2-still-wrong-aliases-from-russian-words#135943 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.0 - PHP version -- : 5.3.0 -- Browser(s) name and version -- : ALL  If we use hikashop on russian language there is no option to translitarate russian names of goods to english.  the solve for this problem like here  файла &#92;administrator&#92;components&#92;com&#95;jshopping&#92;controllers&#92;products.php чтобы получилость так:  if ($jshopConfig-&gt;create&#95;alias&#95;product&#95;category&#95;auto &amp;&amp; $post==&quot;&quot;) $post = JApplication::stringURLSafe($post);  We know that on the hikashop joomshopping it's ok  please update hikashop business")*

Yes, the modification has been tested and included on our end.
Thank you for confirming that it works on your end too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMzNTctdjQtMC0yLXN0aWxsLXdyb25nLWFsaWFzZXMtZnJvbS1ydXNzaWFuLXdvcmRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.107 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
