the same category have different addresses. Fix?
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
in the same category we can get by two ways:
1. from main page where are all categories that display hikashop
2. from the sidebar menu where are all the same categories.
But addresses is different!
the first address is www.vkusprirody.ru/category/12-myaso-severnogo-olenya
and the second is www.vkusprirody.ru/myaso-severnogo-olenya
what should i do so the address be the same?
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
www.vkusprirody.ru/category/12-
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Instead, you should create a hikashop module to display your categories (you should be able to achieve the same styling) and set the menu you're using on your home page in the "menu" option of that module. That way, it will produce the same URLs.
For the breadcrumb URL, that's because your categories name are in russian and we didn't do the modification to properly support UTF8 in the URLs of the breadcrumb.
You should edit the file components/com_hikashop/views/category/view.html.php via FTP and replace the line:
$pathway->addItem($category->category_name,hikashop_completeLink('category&task=listing&cid='.(int)$category->category_id.'&name='.strtolower(preg_replace('#[^a-z0-9-_]#i','',$category->category_name)).$menu_id));
by the code:
if(method_exists($app,'stringURLSafe')){
$alias = $app->stringURLSafe($category->category_name);
}else{
$alias = JFilterOutput::stringURLSafe($category->category_name);
}
$pathway->addItem($category->category_name,hikashop_completeLink('category&task=listing&cid='.(int)$category->category_id.'&name='.$alias.$menu_id));
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
In the file components/com_hikashop/views/category/view.html.php you will found the addItem call at several places where the category name is used and it need to be replaced in the same fashion.
Please Log in or Create an account to join the conversation.
In the file components/com_hikashop/views/category/view.html.php you will found the addItem call at several places where the category name is used and it need to be replaced in the same fashion.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
no. there is only one placeYes, that's because that change has to be made at different places, not only there.
But the problem is that i go into the product page - the breadcrumbs is changed to wrong way.
I think that changes need to be in components/com_hikashop/views/product/view.html.php
i see that $pathway is there too. But the how to change i am not sure...
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
In the file components/com_hikashop/views/product/view.html.php, you will find the line:
$pathway->addItem($category->category_name,hikashop_completeLink('category&task=listing&cid='.(int)$category->category_id.'&name='.strtolower(preg_replace('#[^a-z0-9-_]#i','',$category->category_name)).$url_itemid));
that you should replace in the same fashion, with that code:
if(method_exists($app,'stringURLSafe')){
$alias = $app->stringURLSafe(strip_tags($category->category_name));
}else{
$alias = JFilterOutput::stringURLSafe(strip_tags($category->category_name));
}
$pathway->addItem($category->category_name,hikashop_completeLink('category&task=listing&cid='.(int)$category->category_id.'&name='.$alias.$url_itemid));
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
why you don't include this changes to your hikashop new version? I think that others foreign customers have the same problems...
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
COBIZ webdevelopment | www.cobiz.nl
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
@ener : Please explain more your problem.
Please Log in or Create an account to join the conversation.
If I click subcategory in menu, then url is : mysite.com/testcategory-1/testsubcategory-1-1 .
So the subcategory menu link will not be active if someone goes from mainarea, because url-s are different. Im using latest hikashop version. Is there any solution to solve this problem?
Menu link are build with Joomla menu manager and link style is hikashop category/product page.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.