- Posts: 24
- Thank you received: 0
Strange menu behavior in category view
- KleanZlate
-
Topic Author
- Offline
-- 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.
Please Log in or Create an account to join the conversation.
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.
- KleanZlate
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
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...
Please Log in or Create an account to join the conversation.
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.
- KleanZlate
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
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.
- KleanZlate
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
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.
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.
- KleanZlate
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
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.
- KleanZlate
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
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.
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.
Please Log in or Create an account to join the conversation.
- KleanZlate
-
Topic Author
- Offline
- Posts: 24
- Thank you received: 0
Thank you for your assistance.
Please Log in or Create an account to join the conversation.