Category linking problem

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #237706

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

Hi,

All categories on category listing page have this type of link which is good:
index.php?option=com_hikashop&view=product&layout=listing&Itemid=339

but 2 of them have this type of link and they are not displaying the product listing page correctly:
index.php?option=com_hikashop&ctrl=category&task=listing&cid=63&name=calfan&Itemid=161

Is there a bad setting somewhere? At first I've thought there is a menu item alias somewhere, but couldn't find one.

thank you!

Last edit: 9 years 4 months ago by michaelmyth.

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #237708

Hi,

I think that the problem is with your link/menu item.
If you go there, it displays the products:
index.php?option=com_hikashop&view=product&layout=listing&Itemid=161
So it means that the menu item with the id 161 is a products listing menu item, but the "view" parameter in your link is "category" instead of "product" which is not compatible with the type of the menu item.
So I'm thinking that you have a canonical URL in your category with the id 63 and that this URL is not correct anymore.
Empty that field of your category and try again with the new link of the category on the listing and it should hopefully be better.

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

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #237798

Hi,

When I navigate via menu this link is functional index.php?option=com_hikashop&view=product&layout=listing&Itemid=161 and it displays correctly the product listing page.

When I navigate via category page to the product listing page I get those bad links. I've checked the Canonical URL for this 2 categories and the field is empty.

thank you!

Last edit: 9 years 4 months ago by michaelmyth.

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #237875

Hi,

So could you provide the link of the page where you get these bad links and a screenshot of the products options and categories options tabs of the menu item with the id 161 ?

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

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #238084

Hi,

I've sent the link via email.

For screenshots please see attached images.

thank you!

Attachments:

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238113

Hi,

From what I can see, you need to edit the menu item with the id 161via the Joomla menu manager, and turn off the "add to cart" setting under the "products options" tab.

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

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #238225

Hi,

Sorry, I've done that and it didn't change anything.

thanks!

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238235

Hi,

I've checked your website and the products now display fine under the Duster category link:
index.php?option=com_hikashop&ctrl=category&task=listing&cid=62&name=duster&Itemid=161
But before it didn't.
So as far as I can see, it seems to have fixed the problem.
Regarding the Calfan category, wouldn't that mean that there is no product with stock in that category if the products listing is empty ?

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

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #238525

Hi Nicholas,

The product listing pages are not displaying yet correctly. I know that because I've made some code changes on product listing pages to detect the category name and serve a module on each page depending on the category name. On all other categories the product page is displaying correctly when navigation is done via menu and categories listing page(except the last 2 categories), because the category name is displayed correctly plus the links are weird for the last 2 categories. The link doesn't point to product listing page. I've tried to recreate both of them from scratch but it does not fix the problem. What is weird is why only this 2 categories(Duster and Calfan) have this problem?

I've also removed all my code changes by disabling the override folder in my template, but without any effect.

thanks!

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238546

Hi,

It must be that you have the wrong canonical URL in these categories.
Edit the duster one and make sure that you have index.php?option=com_hikashop&view=product&layout=listing&Itemid=692 in its canonical URL.
And for the calfan category, make sure that you have that URL:
dev.michaelshibori.com/index.php?option=...t=listing&Itemid=693

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

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #238704

Hi,

sorry, but it doesn't work. The canonical URL is empty on all categories.

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238711

And so what if you enter these URLs in the canonical URL fields of these two categories ?
If that doesn't change anything, you'll want to set the "Force canonical URLs on listings" setting of the HikaShop configuration to "Use canonical URL if specified"

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

  • Posts: 42
  • Thank you received: 0
9 years 4 months ago #238903

Hi,

I've enable: "Force canonical URLs on listings" and now it works but I still do not understand why this 2 categories need canonical URL's and the other categories don't?

Will this conflict with sh404SEF when I'll enable it?

thanks!

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

  • Posts: 84310
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #238918

Hi,

It shouldn't be a problem with sh404sef.
I don't know either why it wouldn't work without them. The URLs should work fine without. There must be something else creating a conflict. But this is a good way to circumvent the problem.

The following user(s) said Thank You: michaelmyth

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

Time to create page: 0.079 seconds
Powered by Kunena Forum