Problem with SEF urls and breadcrumbs

  • Posts: 205
  • Thank you received: 14
  • Hikashop Business
6 years 4 days ago #304894

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.2.14

I can't properly set the display of urls and breadcrumbs with product categories

1 / I chose the option complete breadcrumbs to have the categories, so I should have: home> mycategory> myproduct.
The category sometimes appears or disappears depending on whether we go to the product or we go back to the category through the breadcrumbs or via the module "categories level" or via the listing products, we do not have the same things.
This also generates display problems in the product listing : the name and description of the category is duplicated.

2 / I don't understand the generated SEF urls. I would like to have simply: shop/mycategory/myproduct.html.
I managed to delete the word "product" from the URL leaving empty the field SEF product name, but I can not leave the SEF category name empty and in addition it appears at the end of the url: shop/product/category_pathway-13.html
For some pages I have : boutique/product/listing/myproduct.html

Do you have an idea of ​​what's wrong? Thank you

Last edit: 6 years 4 days ago by houba_houbi.

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

  • Posts: 83483
  • Thank you received: 13506
  • MODERATOR
6 years 3 days ago #304896

Hi,

What you want to do is enter the working URL you want in the "canonical URL" of your products and activate the "force canonical URL on listings" setting of the HikaShop configuration. That will make sure that only that URL is used to access the product page.

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

  • Posts: 205
  • Thank you received: 14
  • Hikashop Business
6 years 3 days ago #304922

Hi
Have you an help on how settings canonical urls because I have 404 error pages (I don' find an help on the documentation on that)

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

  • Posts: 83483
  • Thank you received: 13506
  • MODERATOR
6 years 3 days ago #304923

Hi,

As I said in my previous message, the URL that you enter in the "canonical URL" field must be valid.
If the URL you enter there doesn't already display the product page but instead a 404 error, then you'll get a 404 error for your product page.
What this field allows you is to pick one URL among the ones directing to your product page and tell the system to always use that URL.

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

  • Posts: 205
  • Thank you received: 14
  • Hikashop Business
6 years 2 days ago #304964

Hi
I don't understand how to set my configuration.
Except that the default urls do not suit me.
The settings with "normal" urls should display the same page that I go by the breadcrumbs, the listing products or the module level categories ? But that's not the case

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

  • Posts: 83483
  • Thank you received: 13506
  • MODERATOR
6 years 1 day ago #304968

Hi,

The URLs generated by HikaShop will depend on many parameters:
- the current menu item
- the SEF settings of the HikaShop configuration
- the product settings
What you want to do is configure your modules and menus to get the pages you want. Then, for a product identify the URL to reach the product page that suits you (from a listing of products) and then enter it in the "canonical URL" field of the product and then with the "force canonical URL on listings" setting, that URL will be used everywhere.
If none of the generated URLs suits what you want, then please provide a concrete example of a product page URL and tell us precisely what you want. Then, we can tell you what's possible.

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

  • Posts: 205
  • Thank you received: 14
  • Hikashop Business
6 years 1 day ago #305006

Hello

I think the problem with breadcrumbs and all are fixed, by adding default categories listing and default product listings menus.
But I have a problem with boutique home page, it lists all products display in home category, so all the products.
By passing this home page I have : abc.com/e-boutique/product/myproductname.html
By passing subcategories or module categories level I have : abc.comt/e-boutique/product/myproductnam...gory_pathway-12.html
So I will have duplicate entries with a default SEF configuration. How to fix that ?

Why with SEF configuration we don't have a simply url for products : abc.com/e-boutique/mycategoryname/myproductname.html and for categories : abc.com/e-boutique/mycategoryname.html ? What is the goal to add in url "product" or "category" or "category_pathway-id" ?

And if canonical urls are the goal to avoid all the problem, I don't arrive to sets theses urls, I have allways 404 error pages. I don't understand how to fix that. I send you credentials for access to the website by email if you could please help me. thanks

Last edit: 6 years 1 day ago by houba_houbi.

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

  • Posts: 83483
  • Thank you received: 13506
  • MODERATOR
6 years 22 hours ago #305013

Hi,

1. Duplicate URLs for the same page is only a problem if you don't enter a "canonical URL" in your product.
If, for that product "myproductname", you enter the URL /e-boutique/product/myproductname.html in the "canonical URL" field of the product, then search engines will only reference that URL for the product page and won't count the other URLs leading to that page as "duplicate" and thus it won't affect your SEO.

2. Yes, you don't have a unique URL for a page in Joomla. For example, if you configure two menu items of the type "single article" and select the same article for both menu items, then both menu items will display the same article, only the URL will be different.
And for the product, category, or category_pathways parameters of the URLs, it's basically the same as the menu alias in the URL. It allows the router to know which page of which menu item is requested.
Without them, the router would have to do many queries to guess what is called.
For example, for the URL abc.com/e-boutique/mycategoryname/myproductname.html , it would have to search and see if myproductname is actually a product alias or a category alias or a brand alias or something else.
Also, If you add the product to the cart and go to the checkout, you're still on the same menu but you want to have something in the URL to know that it's the checkout page you want to display. So you'll want for example abc.com/e-boutique/mycategoryname/checkout.html
But then, if you have a product with the alias "checkout", then it would match with that URL and you would actually be unable to access the checkout anymore after creating a product with that alias.

In short, making a routing system which works in all the cases that you can setup your shop requires to add some parameters to know "where we are" when routing the URL.

Now, if you really want the URLs like that, it's totally possible. But you need to use a SEF alias system like there is in sh404SEF so that you can tell it for example that for the URL abc.comt/e-boutique/product/myproductnam...gory_pathway-12.html you actually want to get the URL abc.com/e-boutique/myproductname.html or abc.com/e-boutique/mycategoryname/myproductname.html and it will do it as it has a corresponding table of URLs in the database.

3. For the example you provided via our contact page:
You entered the canonical URL /e-boutique/granules-test-canonical/aliment-complet-pour-poule-pondeuse.html in your product.
However, that URL is not a valid URL of that product page. You can't write whatever you want in that canonical URL field and it will work. You need to enter a valid URL of the product page. If you want to have whatever you want for the URL of the product page, you can use sh404SEF as I was saying earlier. Otherwise, you have to have a valid URL as per the structure of the HikaShop URLs and the way you setup your shop.
Since you have the "product SEF name" set to "product", a valid canonical URL of that product would be instead:
/e-boutique/granules-test-canonical/product/aliment-complet-pour-poule-pondeuse.html
However, if you want to keep the canonical URL /e-boutique/granules-test-canonical/aliment-complet-pour-poule-pondeuse.html, it's possible, but in that case, you want to empty the setting "Product SEF name" in the HikaShop configuration.

The following user(s) said Thank You: houba_houbi

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

  • Posts: 205
  • Thank you received: 14
  • Hikashop Business
6 years 8 hours ago #305037

Thanks for your help.
I misunderstood and I used canonical as the ability to rewrite the urls as I wanted

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

Time to create page: 0.068 seconds
Powered by Kunena Forum