Skip to main content

the same category have different addresses. Fix?

More
14 years 10 months ago - 14 years 10 months ago #31602 by progreccor
I have shop www.vkusprirody.ru
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? Спроси меня как!
Last edit: 14 years 10 months ago by progreccor.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #31618 by progreccor
and another address in breadcrumbs module....
www.vkusprirody.ru/category/12-

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

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

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #31636 by nicolas
For the side bar URLs, that's because you're using joomla menu items.
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.

More
14 years 10 months ago - 14 years 10 months ago #31668 by progreccor
thank you for the tip about breadcrumbs

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

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 14 years 10 months ago by progreccor.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago - 14 years 10 months ago #31687 by progreccor
after change this line here is the result

sometimes wrong sometimes good

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

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 14 years 10 months ago by progreccor.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #31694 by nicolas
Yes, that's because that change has to be made at different places, not only there.
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.

More
14 years 10 months ago #31695 by nicolas
Yes, that's because that change has to be made at different places, not only there.
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.

More
14 years 9 months ago #31757 by progreccor

Yes, that's because that change has to be made at different places, not only there.

no. there is only one place

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.

More
14 years 9 months ago #31788 by nicolas
There is not only one place :)
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.

More
14 years 9 months ago #31796 by progreccor
it's ok now. (p.s. this was another file - as i notice before... but doesn't matter)

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.

More
14 years 9 months ago #31833 by nicolas
It will of course be included in next version of HikaShop which will be released this week.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34532 by ener
Here are all about fixing breadcrumbs. I have problem with menu, does anybody knows how to solve this problem?

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34535 by goslingcools
Is this update already included today? jan 5th 2012?

COBIZ webdevelopment | www.cobiz.nl

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago - 14 years 8 months ago #34536 by ener
Last edit: 14 years 8 months ago by ener.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34580 by nicolas
@goslingcools : Yes, this modification has been included in HikaShop 1.5.5 which was released last month.

@ener : Please explain more your problem.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34911 by ener
If I go from menu to main category and there are displayed subcategorys pictures in main area. Then I click on subcategory and the url is: mysite.com/testcategory-1/category/23-testsubcategory-1-1

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.

More
14 years 8 months ago #34943 by nicolas
Yes, that's normal. There is no solution for that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.272 seconds
Powered by Kunena Forum