the same category have different addresses. Fix?

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #31602

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: 12 years 11 months ago by progreccor.

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

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #31618

and another address in breadcrumbs module....
www.vkusprirody.ru/category/12-


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

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

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #31636

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #31668

thank you for the tip about breadcrumbs


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

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

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

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #31687

after change this line here is the result

sometimes wrong sometimes good


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

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

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #31694

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #31695

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #31757

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #31788

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #31796

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #31833

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.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #34532

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.

  • Posts: 38
  • Thank you received: 0
12 years 10 months ago #34535

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.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #34536

What update?

Last edit: 12 years 10 months ago by ener.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34580

@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.

  • Posts: 19
  • Thank you received: 0
12 years 10 months ago #34911

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34943

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.107 seconds
Powered by Kunena Forum