Can't understand path in the URL

  • Posts: 30
  • Thank you received: 1
4 years 7 months ago #310886

-- HikaShop version -- : 4.2.1

Hi,
how to obtain a simple, logical "/category/subcategory1/subcategory2/subcategoryN/product_id" path?

I cannot understand how HikaShop builds the URL, which either is missing all subcategories or adds category_pathway suffix, depending on the "Simplified breadcrumbs" setting.

Would you help me to understand, please?
Thank you very much.
Kind regards

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
4 years 7 months ago #310941

Hi,

HikaShop doesn't build the URL based on the categories tree.
It builds the URL like this:
alias-of-main-menu-item/alias-of-child-menu-item/product-sef-name/product_id-product_alias
The part "alias-of-main-menu-item/alias-of-child-menu-item" is generated by joomla based on your menu item structure.
The part "product-sef-name" comes from what you have in the "product sef name" setting of the HikaShop configuration.
And then you have the product id and the product alias.
So if you want the URL to reflect your category tree structure, you have two options:
- You create menu items in the Joomla menu manager to reflect your category tree structure. In each menu item, you select the corresponding category in the "main category" setting. Then, you can empty the "product sef name" setting in the HikaShop configuration and you'll get a result similar to what you want.
- You use a SEF URL alias system like there is in sh404SEF or other SEF extensions.
With it, you can create a SEF URL alias for each product page with whatever text you want in the SEFed URL so you have total control on how the SEFed URL looks like.

The following user(s) said Thank You: altrasoluzione

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

Time to create page: 0.054 seconds
Powered by Kunena Forum