Joomla Top Menus for categories & other Qs

  • Posts: 1
  • Thank you received: 0
9 years 8 months ago #225988

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Iceweasel 43.0.2

Hello,
I have several questions that I'd really appreciate answers to.

1. My site is using a Top menu, which did have several convenient menu items linking to popular product categories, followed by a link to 'All Categories'.

I configured SEF URLs and in order for those to work reliably I had to disable all of the top menus except the 'All Categories' one. Otherwise, items were showing up with incorrect SEF URLs. From reading some threads on this forum, I understand this is common, but may be able to be worked around.

In the Hikashop configuration, Features section I have set Category SEF name as empty string and Product SEF name as 'product'.

Is it possible to have top menus that link to specific categories without messing up SEF URLs?

2. I would like to display links back to the categories a product is in from the product page. There is the Breadcrumb, but is there a way to get a more prominent link somewhere on the product page, perhaps showing links to all the categories the product belongs to?

3. If I click a category from the Browse Categories button (i.e. top level), such as Gifts, the breadcrumb doesn't update. When I click a subcategory from inside the Gifts category, it updates correctly. I suspect this is related to the use of the Browse Categories menu. Is there a better way to give convenient access to categories without the menu?

I have a feeling that I'm not doing things as they should be done with Hikashop, but even after extensive Googling I've not been able to find answers.

Any pointers would be appreciated, even if you can't solve all of my problems. Thanks in advance!

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

  • Posts: 84328
  • Thank you received: 13718
  • MODERATOR
9 years 8 months ago #226069

Hi,

1. Sure. If the product pages links don't work anymore, it's probably that you have wrong "canonical URLs" in your products and that you have the "force canonical URLs on listings" setting of the HikaShop configuration turned on. Deactivate that option or remove the wrong canonical URLs and it should work.

2. Such code:

<?php 
  foreach($this->categories as $category){
  $categoryClass = hikashop_get('class.category');
$categoryClass->addAlias($category);
echo '<a href="'.hikashop_contentLink('category&task=listing&cid='.$category->category_id.'&name='.$category->alias,$category).'">'.($category->category_name).'</a>';
  }
  ?>
could be added in the "show_default" file of the "product" view via the menu Display>Views in order to add such categories link.

3. It's probably because you have some caching activated on your website and thus the breacrumbs module is cached for each menu item. Disable all the cache on the website.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum