Category ID is shown in the URL's

  • Posts: 4
  • Thank you received: 0
  • Hikashop Business
2 years 9 months ago #334062

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.3.28
-- Browser(s) name and version -- : Firefox 89.02

Hi Supporters

I have a problem with the Category URL's.
By the categories the URL's shows the category id. That i dont' want. I have the Option "remove the product and category id" on, but the id for the categories is still show.
How I can remove that id?
for example " shop.vtt-group.com/fr/prod/levage/elingues-rondes/cid-19 "

When I change the language joomla goes to the startpage instead to the correct categorie of the selected language.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334066

Hi,

This is indeed the setting.
Note that if you have entered a "canonical URL" in your category, and you also have the "force canonical URLs on listings", then the canonical URL will override the dynamically generated URL. So in that case, you want to clear the canonical URL field of your category, so that you can either reenter the correct URLs or let the system regenerate them on the fly.

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

  • Posts: 4
  • Thank you received: 0
  • Hikashop Business
2 years 9 months ago #334070

Hi Nicolas,

Thank you for your answer.
The canonical URL's of the products and the categories are all blank.
The option *force canonical URLs" is off, my configuration is "No, generate the URLs"

Is that not correct ?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334074

Hi,

That's correct.
In that case, then when you turn off the "remove the product and category id" setting, the id will be removed from the category URL.

I looked at your website URL, and I couldn't find ids in the category URLs anywhere, until I reread you first message and saw that you were talking about language change. And now I understand that your issue is about the URL generated for the Joomla language switcher on the category menu items.
We've actually improved the URL generated there several times to handle different cases in the past year. It seems that you're in yet another special case we didn't take into account.
Could you provide a backend access and a FTP access along with a link to this thread via our contact form so that we can do some debugging and check your settings so that we can look into the problem ?
www.hikashop.com/support/contact-us.html

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

  • Posts: 4
  • Thank you received: 0
  • Hikashop Business
2 years 9 months ago #334109

Hi Nicolas,

I have sent you the login for the backend.
For the FTP access i'm waiting for the answer from my provider.

Thanks

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334126

Hi,

Thanks, we got the backend access. But we really need to be able to edit the files on the website. So we'll need to wait to be able to look into it.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334179

Hi,

Thank you for the access.
I was able to do some debugging and improved the URL generation on the language switcher to only add the cid parameter on the category listing when the current menu item is directly linked to the current category.
That seems to work fine and thus we'll also add the patch in the next release of HikaShop.

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

  • Posts: 4
  • Thank you received: 0
  • Hikashop Business
2 years 9 months ago #334186

Hi Nicolas,

Thank you very much for your effort.

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

  • Posts: 86
  • Thank you received: 5
2 years 8 months ago #334668

Hi, I tested this latest version and found a problem: I have Hikashop main page for english under URL "<sitename>/en/shop", and main page for Italian version under URL "<sitename>/it/negozio" and these two menu items are associated in Joomla.
The lang switcher does not show correctly the associations:

  • when in ".../en/shop", the italian flag points to ".../it/negozio/category/product-category"
  • when in ".../it/negozio", the English flag points to ".../en/shop/category/product-category"
can you please have a look and possibly fix?
thanks

Giuse

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

  • Posts: 4519
  • Thank you received: 612
  • MODERATOR
2 years 8 months ago #334674

Hello,

Please, provide relative setting screenshot to your categories, of your module switcher, Url link to frontend with the issue and any elements that can allow us to reproduce your current issue.

Awaiting your elements to be able to progress on your subject.
Regards

Last edit: 2 years 8 months ago by Philip.

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

  • Posts: 86
  • Thank you received: 5
2 years 8 months ago #334693

Hi Philip, please find attached the screenshot you mention. The Joomla lang switcher does not respect the association between "shop" and "negozio" menu item.
Let me know if you need additional information.
cheers

Giuse

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

  • Posts: 4519
  • Thank you received: 612
  • MODERATOR
2 years 8 months ago #334698

Hello,

Sorry for this return, but these elements didn't allow us to progress on your subject, and so in order to progress on your subject can you provide these elements :
- An Url link with issue
- A step by step process to reproduce your issue
- Backend access (Url link & backend user references)

Awaiting your returns to progress on your issue.
Regards

Last edit: 2 years 8 months ago by Philip.

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

  • Posts: 86
  • Thank you received: 5
2 years 8 months ago #334718

ok, sent credentials through contact form. thanks

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

  • Posts: 86
  • Thank you received: 5
2 years 8 months ago #334778

Hi, did you find the problem?
Thanks

Giuse

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 8 months ago #334782

Hi,

Sorry for the delay. The weekend was in the middle and I was not available yesterday.
I've tried to reproduce the issue on my end but I couldn't and I checked your settings on your website but couldn't figure out why it would do that.
We'll need to add a bit of debugging on your website to better understand the situation.
Could you also provide a FTP access via our contact form along with a link to this thread for reference ?
www.hikashop.com/support/contact-us.html

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

  • Posts: 86
  • Thank you received: 5
2 years 8 months ago #334796

thanks, done

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 8 months ago #334857

Hi,

Thanks for the access. I found the issue.
It comes from a lack of backward compatibility with some menu items in the integration with the language switcher module.
Would you have deleted your menu items and recreated them with the same options selected, you would not have had the problem.
I've added a small patch so that it can work even without this, as it is to be expected.
It's now working fine on your website as far as I can see.
The fix is quite easy to add for anyone interested. You just need to add the code:

if(empty($p->selectparentlisting) && !empty($p->category))
							$p->selectparentlisting = $p->category;
before the line:
if(empty($p->selectparentlisting) || $p->selectparentlisting != $cid) {
in the file components/com_hikashop/helpers/association.php
We'll add that to the next version of HikaShop too.

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

  • Posts: 86
  • Thank you received: 5
2 years 8 months ago #334865

Thanks Nicolas, excellent support!

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

Time to create page: 0.100 seconds
Powered by Kunena Forum