built-in sitemap for hikashop

  • Posts: 39
  • Thank you received: 4
1 week 5 days ago #341380

Is there a built-in site map plugin for hikashop or should we use third-party plugins?

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

  • Posts: 75473
  • Thank you received: 11742
  • MODERATOR
1 week 5 days ago #341386

Hi,

There is no pre installed sitemap system in HikaShop.
First, a sitemap is something global to your website so it's normal it's not done by an ecommerce solution, because that's not its role to do that.
Second, you'll find many free sitemap solutions for Joomla. Some of them might directly include an integration with HikaShop.
Third, we do publish a sitemap plugin you can install separately and which intergate with the main sitemap extensions for Joomla:
www.hikashop.com/support/documentation/8...ation-with-xmap.html
We recommend using OSMap. It's a free sitemap extension. It works great, they've been doing it for years, and the sitemap plugin we provide is compatible with it.

The following user(s) said Thank You: levelup

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

  • Posts: 39
  • Thank you received: 4
6 days 9 hours ago #341523

Hi
According to your recommendation, we used the Xmap plugin that integration with OSMap.
The problem is not the sitemap. The problem is the links that contain the component/com_hikashop.
When I search for site:almasp.com/component in Google,all links have this structure:
www.almasp.com/component/hikashop/4694-
If this is the correct product link:
www.almasp.com/shop/%D9%85%DA%A9-mac/469...nt-with-magsafe.html
This means that a product has two links.
What should I do to prevent Google from showing www.almasp.com/component/hikashop/4694- links?

Last edit: 6 days 9 hours ago by levelup.

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

  • Posts: 75473
  • Thank you received: 11742
  • MODERATOR
6 days 5 hours ago #341524

Hi,

Make sure that you fill the "canonical URL" setting of each product with the URL you want to be indexed by search engines.
That way, when a search engine crawls another URL which accesses that product, it will see the canonical URL and it will discard the URL it crawled in favor of the canonical URL you specified.
When a canonical URL is provided for a product, then the sitemap will also use this canonical URL instead of trying to generate a dynamic URL for the product.
HikaShop also has a "force canonical URLs on listings" setting in its configuration. If you activate it, it will use the canonical URL on the listings instead of generating the URL, and you can even have it auto filling the canonical URL of the products (it will look for the canonical URL each time it displays the product in a listing and if it doesn't find it, it will generate the link dynamically and then store that link as a canonical URL for the future).
Also, note that you have two things to take into account with canonical URLs:
- if you change your menu items, or the alias of the products, this can invalidate the canonical URLs and in that case, you'll have to modify them.
- you can't enter any URL you want as a canonical URL. You need to enter a URL which is already valid to access the product.

Finally, regarding the component/hikashop part of the URLs: This is added by Joomla SEF system automatically instead of the alias of the menu item when there is no menu item associated with the URL. In joomla, each page is supposed to be displayed as part of a menu item and that menu item needs to be of a type of the same component displaying the main area of the page.
So for example, if the search system of Joomla finds a HikaShop product to be displayed as a result, it needs to use a HikaShop type menu item for generating the link to the product page. However, it doesn't know which one to use (any website usually have several menu items for HikaShop views on the frontend). It might not use any (in which case it will display component/hikashop) or it might pick one randomly. With a canonical URL associated to the product, it will use that canonical URL automatically, so having canonical URLs in your products is also a great way to ensure that the URLs are nice everywhere on your website.

The following user(s) said Thank You: levelup

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

  • Posts: 39
  • Thank you received: 4
5 days 9 hours ago #341555

hi
Thank you for your comprehensive and complete explanation.
I have a question.
There is a product that falls into two categories. One category has a menu and the other does not. In this case, where does the product link open?
How is a canonical link made?

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

  • Posts: 75473
  • Thank you received: 11742
  • MODERATOR
5 days 6 hours ago #341556

Hi,

When HikaShop generates dynamically the URL of a product the format is something like that:
{alias of the parent menu item}/{alias of the current menu item}/{product SEF name configured in the HikaShop configuration}/{id of the product}-{alias of the product}
So the system doesn't rely on the categories linked to the product to generate the URL.
The part {alias of the parent menu item}/{alias of the current menu item} depends on which page the URL is being generated on and if the current page doesn't have a menu item, it can end up with component/hikashop so that the URL is still working.
That part is actually handled by Joomla, not HikaShop.

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

  • Posts: 39
  • Thank you received: 4
5 days 1 hour ago #341578

hi again
I created a menu for product category and also enter a canonical link for the product.
But my product still has 2 links. One:
sitename.com/component/hikashop/product-name
And another:
sitename.com/category-menu/product-name
And unfortunately the link sitename.com/component/hikashop/product-name displays in Google when you search for the site: sitename.com/component.

Do I have to change anything in the HikeShop SEF settings to open the sitename.com/category-menu/product-name link when visitors click on the sitename.com/component/hikashop/product-name link in Google?

Last edit: 5 days 1 hour ago by levelup.

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

  • Posts: 75473
  • Thank you received: 11742
  • MODERATOR
4 days 22 hours ago #341580

Hi,

There is no setting anywhere in HikaShop which would redirect sitename.com/component/hikashop/product-name to sitename.com/category-menu/product-name
It's normal that you can access a page of a website with several URLs. That's not the problem here.

And the fact of filling in the canonical URL of a product won't immediately remove the other URLs of that product from the index of Google either.
What you want is to remove the old URL from the Google index and have it index the new one, or even just ask it to reindex the old URL (so that it will see the canonical URL and will update its index).

The following user(s) said Thank You: levelup

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

Time to create page: 0.072 seconds
Powered by Kunena Forum