Remove component/hikashop/itemid from associated

  • Posts: 127
  • Thank you received: 6
10 years 3 months ago #202586

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1

I have set sef url options and set Remove products and categories id in URLs=Yes
But
In associated Products links are still showing as with
component/hikashop/product-title?Itemid=0

So I have to set up redirects with sh404sef

This happens regardless of sh404sef on or off.

When I try to solve using canonical forcing I get duplicated canonical links on the page (which Google then will not index)

Is this solvable? I'd be obliged if someone would help solve - I'm about to go mental trying to fix the duplicate content issues this throws up. Really has been a problem with Hikashop for a year or more now.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 3 months ago #202628

Hi,

You have to associate a "menu" in the configuration of your module.
So when the module will generate links, it will use that specific menu to generate right and nice SEF links.

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.
The following user(s) said Thank You: Bobwales

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

  • Posts: 43
  • Thank you received: 3
  • Posts: 127
  • Thank you received: 6
10 years 3 months ago #202709

Ok Thanks both.
Modules on the Home Page have always been associated with the Home menu and generating those annoying component/hikashop shaped urls.
When I changed to associate with a sub-menu (the destination menu) for those HomePage modules, then the generated links became appropriate and sef.

This is either counter intuitive, or I have a fundamental mis-understanding (which wouldn't surprise me!)

So, I'm pleased to get this sorted. Next step...
On a Product page, how do I do the same thing for the products Associated Products module?
Thanks again!
Bob (often baffled).

Last edit: 10 years 3 months ago by Bobwales.

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

  • Posts: 127
  • Thank you received: 6
10 years 3 months ago #202754

Well I fixed it with some patient searching, eventually coming across this (not so easy to find or immediately understand):
**********************
How to display your related products below your products:
1. Create a new module of the type "HikaShop content module" via the joomla modules manager and leave it unpublished in the joomla options of the module.
2. In the HikaShop options of the module (there is a link to them on the right of the module's joomla options screen), make sure that the "Type of content" option is set to "product" and that the option "Content on product page" is set to "Related products".
3. In the configuration of HikaShop, click on the "Select" button of the "Modules under the product page" option. Set your related module to published and click on OK. Then, save the configuration.
**********************
Problem is now, when I click on a related product, that product then displays its related products that do not match with nice sef urls - the generated urls gain the category used for the Related Module's Menu Association.
What I'm trying to achieve is avoid duplicate content issues with Google.

Progress, but not quite there yet...

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 3 months ago #202755

Hi,

When Joomla generates a SEF URL from the non SEF URL that an extension gives it, it looks at the Itemid parameter of the non SEF URL, it removes it from the SEF URL. This Itemid parameter contains the id of the destination menu item. And instead of that parameter, it add either component/XXX/ where XXX is the name of the destination component, or YYY/ where YYY is alias of the destination menu item. It will use YYY/ if the Itemid parameter is specified and that its menu item is of one of the types of the destination component. Otherwise, it has to add component/XXX/ so the the SEF system can display properly the page with the correct component upon arrival on the page of the link.

So this means that if you have component/XXX/ in the generated URLs of a module, either its destination "menu" is not specified, or it is specified with a menu item which is of a wrong type.

It's actually the same principles for any extension, HikaShop or not.

If you have the URL:
component/hikashop/product-title?Itemid=0
it means that you didn't select any menu, or a menu that has been trashed, deleted, etc in the "menu" setting of your module (that you can find when you edit it via the menu Display>Content modules).

Now regarding content duplication, HikaShop has canonical URL fields for products/categories that you can fill to avoid that. The simplest is to set the "force canonical URLs on listings" setting of the HikaShop configuration to generate the canonical URLs and then look at your normal products listings once (so that the system fill them in). And then the canonical URLs should be filled and you'll get the links you want in the related products module.

The following user(s) said Thank You: Bobwales, tristan1989

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

  • Posts: 127
  • Thank you received: 6
10 years 3 months ago #202792

That's really very helpful Nicolas, thankyou.

My problem with the canonical setting is that somewhere in the Joomla setup another component is producing canonicals. So when I implement this per product or category in Hikashop 2 canonical relative tags are produced in the html. This makes Google ignore the whole content.

So I have to leave canonicals blank.

Is there a solution to the Related Products links produced by the related products module when a related product is opened?
You can see the issue at our test site juicy.juicybike.co.uk
Best regards, Bob

Last edit: 10 years 3 months ago by Bobwales.

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 3 months ago #202805

The solution for the URLs of the related products module is to use canonical URLs. I don't see any other.
I would rather recommend to solve the issue with the other element adding canonical URLs on your website.
It's a SEF extension. Either a third party or the SEF system plugin of Joomla (which can be disabled).

Last edit: 10 years 3 months ago by nicolas.

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

  • Posts: 127
  • Thank you received: 6
10 years 3 months ago #204749

Thanks Nicolas, but I have other components on the site that do need sef working, so it's not an option to disable that.

But with the help of this post:
www.hikashop.com/forum/product-category-...ption-wt.html#204485

I have maneged to resolve the double canonical problem and so can now use Hikashops canonical urls, which are robust and solve so many other duplicated content issues (hopefully). Maybe Google will look more favourably at our site now!

Looking good on the test site so far and for anyone else with this issue (duplicate content in Google index) I strongly suggest looking at the above link for help.

Last edit: 10 years 3 months ago by Bobwales.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum