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

#   Not used $unicodeslugs from configuration.php

##

- **[zlenko](/forum/user/2047-zlenko "View zlenko's Profile")**
- [![zlenko's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/2047-zlenko "View zlenko's Profile") Topic Author
- [ Offline](/forum/user/2047-zlenko)

Less More

- Posts: 115
- Thank you received: 8
-
-
-
- [](http://ibaby.com.ua)
-

15 years 7 months ago [\#13856](#13856) by [zlenko](/forum/user/2047-zlenko "View zlenko's Profile")  *[Not used $unicodeslugs from configuration.php](/forum/3-bug-report/13856-not-used-unicodeslugs-from-configuration-php#13856 "HikaShop not used $unicodeslugs from configuration.php Joomla 1.6 in files: components&#92;com&#95;hikashop&#92;controllers&#92;product.php components&#92;com&#95;hikashop&#92;views&#92;category&#92;view.html.php components&#92;com&#95;hikashop&#92;views&#92;product&#92;view.html.php  this param need for URL in UTF8  example: // zlenko&#95; // foreach($rows as $key =&gt; $row){ // $ids&#91;&#93;=$row-&gt;category&#95;id; // $rows&#91;$key&#93;-&gt;alias = JFilterOutput::stringURLSafe($row-&gt;category&#95;name); // } if ($app-&gt;getCfg('unicodeslugs') == 1) { foreach($rows as $key =&gt; $row){ $ids&#91;&#93;=$row-&gt;category&#95;id; $rows&#91;$key&#93;-&gt;alias = JFilterOutput::stringURLUnicodeSlug($row-&gt;category&#95;name); } } else { foreach($rows as $key =&gt; $row){ $ids&#91;&#93;=$row-&gt;category&#95;id; $rows&#91;$key&#93;-&gt;alias = JFilterOutput::stringURLSafe($row-&gt;category&#95;name); } } // &#95;zlenko")* was created by *[zlenko](/forum/user/2047-zlenko "View zlenko's Profile")*

HikaShop not used $unicodeslugs from configuration.php Joomla 1.6
in files:
components\com_hikashop\controllers\product.php
components\com_hikashop\views\category\view.html.php
components\com_hikashop\views\product\view.html.php

this param need for URL in UTF8

example:
// zlenko_
// foreach($rows as $key =&gt; $row){
// $ids[]=$row-&gt;category_id;
// $rows[$key]-&gt;alias = JFilterOutput::stringURLSafe($row-&gt;category_name);
// }
if ($app-&gt;getCfg('unicodeslugs') == 1) {
foreach($rows as $key =&gt; $row){
$ids[]=$row-&gt;category_id;
$rows[$key]-&gt;alias = JFilterOutput::stringURLUnicodeSlug($row-&gt;category_name);
}
}
else {
foreach($rows as $key =&gt; $row){
$ids[]=$row-&gt;category_id;
$rows[$key]-&gt;alias = JFilterOutput::stringURLSafe($row-&gt;category_name);
}
}
// _zlenko

---

my project [ ibaby.com.ua](http://ibaby.com.ua)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzg1Ni1ub3QtdXNlZC11bmljb2Rlc2x1Z3MtZnJvbS1jb25maWd1cmF0aW9uLXBocD90bXBsPW1hcmtkb3du) 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: 86564
- Thank you received: 14311
-
-

15 years 7 months ago [\#13860](#13860) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Not used $unicodeslugs from configuration.php](/forum/3-bug-report/13856-not-used-unicodeslugs-from-configuration-php#13860 "HikaShop not used $unicodeslugs from configuration.php Joomla 1.6 in files: components&#92;com&#95;hikashop&#92;controllers&#92;product.php components&#92;com&#95;hikashop&#92;views&#92;category&#92;view.html.php components&#92;com&#95;hikashop&#92;views&#92;product&#92;view.html.php  this param need for URL in UTF8  example: // zlenko&#95; // foreach($rows as $key =&gt; $row){ // $ids&#91;&#93;=$row-&gt;category&#95;id; // $rows&#91;$key&#93;-&gt;alias = JFilterOutput::stringURLSafe($row-&gt;category&#95;name); // } if ($app-&gt;getCfg('unicodeslugs') == 1) { foreach($rows as $key =&gt; $row){ $ids&#91;&#93;=$row-&gt;category&#95;id; $rows&#91;$key&#93;-&gt;alias = JFilterOutput::stringURLUnicodeSlug($row-&gt;category&#95;name); } } else { foreach($rows as $key =&gt; $row){ $ids&#91;&#93;=$row-&gt;category&#95;id; $rows&#91;$key&#93;-&gt;alias = JFilterOutput::stringURLSafe($row-&gt;category&#95;name); } } // &#95;zlenko")*

Thank you for that information.

We will actually change it to: Code:

if(method_exists($app,'stringURLSafe')){ $prod-&gt;alias = $app-&gt;stringURLSafe($prod-&gt;product_name); }else{ $prod-&gt;alias = JFilterOutput::stringURLSafe($prod-&gt;product_name); }

The new stringURLSafe method which is in the JApplication class handles the slug automatically and should be used so that the code won't need to be changed anymore in the future should the slug option be moved somewhere else or another modification.

That will be included in next release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzg1Ni1ub3QtdXNlZC11bmljb2Rlc2x1Z3MtZnJvbS1jb25maWd1cmF0aW9uLXBocD90bXBsPW1hcmtkb3du) 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.054 seconds

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