Module category list gives 404 errors?

  • Posts: 121
  • Thank you received: 0
12 years 4 months ago #57054

Hi setup a content module, put it in position 5, configured it like below.



My issue is, I have 4 primary categories, beer, wine, spirits & Ciders, under a couple of those, they have sub categories. I added at least one product to one of the categories for testing.

It displays the main 4 categories correctly. If I click on any of the 4 main categories, it tries to load a page and gives a 404 error? Like if I click on beer it tries to load beer.html etc

I was expecting the categories to open up and display the sub category and by clicking on the main categories, it would load / display all products in the main category.

Where have I gone wrong?

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
12 years 4 months ago #57095

Hi bluetonguedesigns,

Try to edit the file: "category / listing_list.php" in HikaShop > Display > Views.

And replace the line:

$link = hikashop_completeLink('category&task=listing&cid='.$row->category_id.'&name='.$row->alias.$this->menu_id);
By:
$link = hikashop_completeLink('categories/category&cid='.$row->category_id.'&name='.$row->alias.$this->menu_id);

Last edit: 12 years 4 months ago by Xavier.

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

  • Posts: 121
  • Thank you received: 0
12 years 4 months ago #57097

Hi, I found 3 copies of that line, and replaced them all, but it sill gives a 404 error

The "Wines" category link generates a link of...

index.php/categories/category/13-wines.html

Which still generates a 404.

When it does work, is the menu supposed to open and display the sub categories under Wines like a kind of tree view?

using the full business edition.

How was that accordion version in the demo store created?

Cheers

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

  • Posts: 13201
  • Thank you received: 2322
12 years 4 months ago #57099

Try to disable the SEF in Joomla > Global configuration.
I think it will resolve your problem.

You can use the accordion version with the parameter: "Show sub categories" > "All direct sub categories" in the module edtion.

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

  • Posts: 121
  • Thank you received: 0
12 years 4 months ago #57100

Hi, thanks, it does resolve the issue, but makes the site very unfriendly to google which is pretty important to these guys. Ideas on how to retain the SEF urls?

I got the accordian version working, a couple of questions...

How do I re-style that? it has boxes around it which I would prefer to loose.
The sub categories when they get exposed, don't just list one under each other, they try to fill the available width so menu items can end up 2 and 3 across, I need them just going down the page.
Top level categories, that don't have a sub category, don't do anything when clicked on, are they not supposed to display everything in that category inc sub categories?

Cheers

Last edit: 12 years 4 months ago by bluetonguedesigns.

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

  • Posts: 121
  • Thank you received: 0
12 years 4 months ago #57109

Hi, I found the option to enable links on the top level categories in the Accordion menu, sub categories link fine without SEF, main give 404's. I removed the suggested code to test that, no difference.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 4 months ago #57113

The main without SEF and with the original code return 404 ?

To re-style the accordion, you can use Firebug to see which classes are to edit, to remove the boxes, try to edit the class "panel".
To do this, go in HikaShop > Configuration > Display and edit the front-end css file.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 4 months ago #57240

Hi bluetonguedesigns,

You need to set the "menu" option in your module's hikashop options.
http://www.hikashop.com/en/forum/3-bug-report/13786-hikashop-content-module-and-sef-urls-gives-404.html#13786

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

Time to create page: 0.085 seconds
Powered by Kunena Forum