Subcategory links do not work properly

  • Posts: 110
  • Thank you received: 6
10 years 2 weeks ago #213092

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

I have an issue that I could not find an answer to on the forums.

When a category menu is clicked the subcategory links on top do not lead to the subcategories, but rather stay in the parent category.
For example on www.trooky.com/all-t-shirts/all-countries you see the sub category "Irish", but when Irish is click it does not take you to that subcategory.

It can also be seen here www.trooky.com/all-t-shirts/animal-shirts the subcategory link "cats" does not take you to the subcategory.

Thank you

Last edit: 9 years 3 months ago by tomhika.

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 1 week ago #213123

Hi,

I suppose that the issue is either with the alias or the canonical URL of the category which are not correct.
Try to empty them.
If that doesn't help, empty them and make sure that the "force canonical URL on listing" and "remove category and product ids from URLs" settings of the configuration are turned off. That should definitely help.

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

  • Posts: 110
  • Thank you received: 6
10 years 1 week ago #213135

Thank you Nicolas.
Yes that works, but you get the ugly urls with category numbers and ID. I dont understand why you would have those controls if once you implement it, they dont work.

I think my solution is going to be to leave the pretty URLs and just add and style links to the subcategories on the main category's description.

Thank you

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 1 week ago #213153

Hi,

The links will work fine with the settings regardless of how you configure them provided that your product data and menu structure is correct.
If you enter crappy data in the products, some parameters won't work properly in some cases. Switching them is a simple way to circumvent the problem.

For example, suppose that you entered the alias "my-shoe" in the product and that you have the URL /shoes/product/my-shoe2.html as canonical URL for your product. If you have the "force canonical URL on listing" setting activated, the system will use the canonical URL of the product as URL to the product page on your listings. But since the alias of the product doesn't match with what you have in the canonical URL, when you click on the link to the product page, the link won't work.
Turning off that option is an easy way to fix the problem, but the real solution here is to have an alias which matches with the canonical URL or not canonical URL and keep the option turned on.
It's just an example, and I'm not saying that it is the problem you're facing, but it's probably something along those lines.

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

  • Posts: 110
  • Thank you received: 6
10 years 1 week ago #213259

Thanks for your help.

" have an alias which matches with the canonical URL or not canonical URL and keep the option turned on."

From day 1 I did the second part of your description. The menu structure is correct, all menus have dedicated Hika modules, and none of the products used canonicals, and I had both options turned on ........and they did not work properly.

its ok, I found a work around by just undoing that parent relationship of the subcategories, and then just adding styles links to the subcategories on the main category description and a link back to the main category from the subs

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

Time to create page: 0.070 seconds
Powered by Kunena Forum