Strange menu behavior in category view

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #163039

-- url of the page with the problem -- : www.bros.is
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.3
-- PHP version -- : 5.3.28

We're having a strange problem with our menus in category views. Whenever we click a menu item from a category view a bunch of various products appear beneath the product listing page. If, however, we go straight to a subcategory from the front page, it looks ok.

This is how the subcategory looks if we go straight from the front page, www.bros.is :
www.bros.is/index.php/component/hikashop...ct/listing/180-bolir

...and this how it looks if we go from category view, www.bros.is/index.php/fatnadur/category :
www.bros.is/index.php/fatnadur/product/listing/180-bolir

Why are the two urls different and how do I fix this?

Best regards, Petur.

Last edit: 11 years 2 months ago by KleanZlate.

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
11 years 2 months ago #163192

Hi,

I see the same products on both page. The link is different because in the HikaShop options of the module of the front page, you didn't set the fatnadur menu. Set it and you should get the same links.
An alternative is to set the "Force canonical URLs on listings" option of the configuration to "Use canonical URL and generate it if missing".

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

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #163245

nicolas wrote: Hi,

I see the same products on both page. The link is different because in the HikaShop options of the module of the front page, you didn't set the fatnadur menu. Set it and you should get the same links.
An alternative is to set the "Force canonical URLs on listings" option of the configuration to "Use canonical URL and generate it if missing".


Thanks for the response. Could you please explain what you mean by 'set the fatnadur menu'. I'm not sure what you mean by that.
Also I can't find the "Force canonical URLs on listings" option under SEF in the configuration. Is this only in version 2.3.1?

Edit: I've updated to 2.3.1 and changing the Force canonical URLs option didn't work...

Last edit: 11 years 2 months ago by KleanZlate.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #163247

Hi,

What Nicolas means is that you have to edit the module of the front page and in the HikaShop options you should see the option "Menu" (bottom left of the config page), so for this option you have to select the "fatnadur" menu in order to have the correct item id when clicking on a product from the module.

The option "Force canonical URLs on listings" is indeed available only since the version 2.3.1.

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

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #163380

Xavier wrote: Hi,

What Nicolas means is that you have to edit the module of the front page and in the HikaShop options you should see the option "Menu" (bottom left of the config page), so for this option you have to select the "fatnadur" menu in order to have the correct item id when clicking on a product from the module.

The option "Force canonical URLs on listings" is indeed available only since the version 2.3.1.


Thank you. Which module are you talking about though? The menu module is a mega menu module that doesn't have any Hikashop options...

I've updated to 2.3.1 and "Force canonical URLs on listing" didn't work to fix the problem.

Last edit: 11 years 2 months ago by KleanZlate.

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
11 years 2 months ago #163459

If you don't use the default category listing module of HikaShop, it's normal then as the mega menu module code would have to be updated in order to support that new feature that we added recently.
Maybe you could talk to the developer about adding that in his extension ?
It should only be a few lines pf code to change for him.

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

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #163508

nicolas wrote: If you don't use the default category listing module of HikaShop, it's normal then as the mega menu module code would have to be updated in order to support that new feature that we added recently.
Maybe you could talk to the developer about adding that in his extension ?
It should only be a few lines pf code to change for him.


But the problem occurred before I updated to 2.3.1. I will speak to the mega menu devs. just in case. The main problem isn't the urls though. It's the various products that appear under the product listing page. If you check out this page you see 20 T-shirt products and then there's a bunch of filters and products below them that shouldn't be there.

Could it be that I've messed up the content modules somehow? Is there a safe way to redo the whole setup for the shop without losing the products and info?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #163512

Hi,

It is potentially because in the options of the product listing menu there is an associated module.
And this module is displaying a product listing too. So you just have to detach this associated module.

If you want to redo the whole setup, you can simply delete all your menus / modules. The products will not be deleted.
We recommend in any cases to make a backup before any changes.

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

  • Posts: 24
  • Thank you received: 0
11 years 2 months ago #163687

Xavier wrote: Hi,

It is potentially because in the options of the product listing menu there is an associated module.
And this module is displaying a product listing too. So you just have to detach this associated module.

If you want to redo the whole setup, you can simply delete all your menus / modules. The products will not be deleted.
We recommend in any cases to make a backup before any changes.


I've attached a screenshot of the product listings menu. I don't see a module associated to it...

The Mega Menu devs are taking a look at the site. If they don't come up with anything I'll look into redoing the whole setup.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #163696

Hi,

Don't you have created a products listing module, and assigned this module (via the Joomla options) to the product listing menu or "on all pages" ?

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

  • Posts: 24
  • Thank you received: 0
11 years 1 month ago #163819

Xavier wrote: Hi,

Don't you have created a products listing module, and assigned this module (via the Joomla options) to the product listing menu or "on all pages" ?


The problem is that a developer set up the site for us and I've taken over without fully knowing how Hikashop works :dry: How do I create a product listing module for the product listing menu?

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 1 month ago #163821

Hi,

I recommend you this documentation page which is a tutorial on the creation of front-end content (listing menu/modules).
www.hikashop.com/support/support/documen...splay-front-end.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 24
  • Thank you received: 0
11 years 1 month ago #164491

The Mega Menu devs have looked at our site and there is indeed a bug in the menu. They're working on it. If I bypass the menu, Hikashop works like it should.

Thank you for your assistance.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum