Apparently random menu itemids generated in route for joomla tags

  • Posts: 272
  • Thank you received: 3
6 years 5 months ago #282024

-- url of the page with the problem -- : http://joomla_3xxx.lan/index.php?option=com_tags&view=tag&id=2-white-musk&Itemid=381&lang=en
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.1
-- PHP version -- : 7.1

We are testing the joomla tags with hikashop products. We have have noticed that we don't have single product link under the joomla tag view that has a coherent menu itemid i.e. a menuid that is related in some way to the product . For example we have product #20 that is in category #8. We have menu item with itemid 284 which is a category listing link to category #8.

Under joomla tags listing what menu itemid does it have?

http://www.joomla_3xxx.lan/index.php?option=com_hikashop&ctrl=product&task=show&cid=20&name=spray-white-musk&Itemid=348&lang=en

We don't have a menu item which links directly the product #20 as a product page, but we would expect the route to find the (or a) category the products is in and show the add menu itemid. As it is the menu itemids that are generated don't have any connection with the actual product.

Are we missing something in the configuration?

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 5 months ago #282027

Hello,

Without a link or details about your menus, I'm sorry but we can't provide you any useful help.
We do not have enough element or information to analyze and understand the situation, the context.
We can't even see what you're talking about that "random" even if I'm quite sure that there is nothing random at all.

Now I can tell you that you're using Joomla without SEF ; so basically for the main part, the generation of URL won't be related to the canonical URL.
Using the canonical URL is good because you can be sure that your link will be consistent.

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: 272
  • Thank you received: 3
6 years 1 month ago #288868

We done some further tests about the menu Itemid.

We have created some tags for some products. We then view the tag listing with all the products. We don't have any menus linking to products, just to category listings or product listings. The menu Itemids returned don't relate to menu links to category listings that have these products in.

On closer inspection the route it appears to us that the the route finds the first menu with a product listing layout and then returns the first menu Itemid that meets that criteria.

We tried creating a menu which links directly the products but that didn't change anything.

Is there way to assign a fixed menu Itemid to the links for products in joomla tags.

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

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
6 years 1 month ago #288903

Hello,

As Jerome told you it's hard to understand the context, and especially for Joomla tag, there is lots of possibilities.
Can you provide :
- Url link to see by ourself the issue
- Details what you want achieved, do you want to have a tag that will redirect to a category listing by example ?
- screenshot of what you have set for use Joomla tags

Awaiting news from you.
Regards

Last edit: 6 years 1 month ago by Philip.

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

  • Posts: 272
  • Thank you received: 3
6 years 1 month ago #288956

We deleted all our data in hikashop and deleted all hikashop menus including the default hikashop menus that are created when installed.

We then created the follow category hierarchy
product_category
|--->category A
|--->cateogry Z

we put product Test Product in category A and assigned TAG-J
we put product Another Product in category Zand assigned TAG-D

we created 2 category listing menu items.
The link to category A is:
www.joomla3xxx.lan/index.php?option=com_...g&Itemid=169&lang=en

The link to category Z is:
www.joomla3xxx.lan/index.php?option=com_...g&Itemid=296&lang=en

when viewing Test Product which is in category A the URL
www.joomla3xxx.lan/index.php?option=com_...t&Itemid=169&lang=en

when viewing Another product which is in category Z the URL
www.joomla3xxx.lan/index.php?option=com_...t&Itemid=296&lang=en

If we go to view the tag J of Test Product the link on the title is:
www.joomla3xxx.lan/index.php?option=com_...t&Itemid=169&lang=en

If we go to view the tag D of Another Product the link on the title is:
www.joomla3xxx.lan/index.php?option=com_...ther-product&Itemid= 169&lang=en

This is the wrong menu itemid. So the SEF url is incorrect for this product as well the breadcrumb.

I hope the issue is clear now.

Last edit: 6 years 1 month ago by jameswadsworth.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 1 month ago #288964

Hello,

Unfortunately no, it's still not clear.

We can see links and Itemid for menus but without any information about the menus nor why the last link is not correct.
I'm afraid that there is a lot of information without a proper context which allow something external to understand what it going on.

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.

Time to create page: 0.065 seconds
Powered by Kunena Forum