Recently Viewed Item URL's Lead to Incorrect Category

  • Posts: 3
  • Thank you received: 0
8 years 3 months ago #271287

Hi there. First off, LOVE your product...thanks for putting in so much effort to provide such a robust product.

I'm experiencing an issue with Recently Viewed items and I can't seem to find any answers in the forums or documentation so my apologies if this has already been addressed and I just wasn't able to find it.

I've created a HikaShop module set up to contain Recently Viewed items, regardless of product category (e.g. Bracelets, Bath Products, etc.). The issue I've discovered is as follows (you can follow along on my test site which I've provided for your reference):

  1. From Home, select any category (e.g., Jewellery > Bracelets > NATURAL STONE
  2. Select any product to populate the Recently Viewed module
  3. Change to another category: E.g., from the top menu Jewellery > Bracelets > GLASS BEADS
  4. Now, holding the mouse over the Recently Viewed item, you can see the URL will be pointing to the Glass Beads category rather than Natural Stone. If you select the link to this Recently Viewed item, the item displays correctly, however, the breadcrumbs are incorrect (e.g., in this example, it believes we're still in the Glass Beads category, but this item is actually in Natural Stone

I hope this makes sense! If you need anything further, please let me know. Any assistance you can provide is much appreciated.

Thank you,
Tim

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 3 months ago #271354

Hello,

Sorry but where do you provide your test website url, because from what I can see we haven't it, and so unfortunatelly process some test is impossible.
Can you use our Contact us form, and add in your message add an Url link to this topic to keep the link.

Awaiting news from you.

Regards

Last edit: 8 years 3 months ago by Philip.

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

  • Posts: 3
  • Thank you received: 0
8 years 3 months ago #271398

I'm so sorry about that! A message is on the way to you.

Thank you.
Tim

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

  • Posts: 84426
  • Thank you received: 13723
  • MODERATOR
8 years 3 months ago #271400

Hi,

We got the contact request with the additional information, thanks.
It's actually the normal behavior.
In the products listing modules, the URL of the products is constructed based on either:
- the menu item selected in the "menu" setting of your module.
- the current menu item if none selected in the "menu" setting.
So in your case, you must not have selected any "menu" setting, and thus it takes the current menu item.

If you want to always use the menu item of the category of the product , you would have to enter the "canonical URL" of the product in the settings of the product. That URL should be the URL that you want the system to always use on the listings and it needs to be a valid one.
Then, turn on the "force canonical URLs on listings" setting of the HikaShop configuration.
That way, you'll always get that URL, be it in that module, another module, a menu item, etc.
It will also help for your SEO.

The following user(s) said Thank You: albertasky

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

  • Posts: 3
  • Thank you received: 0
8 years 3 months ago #271493

Thank you Nicolas! I could have sworn I had this set up the way you noted, but alas...

Thank you so much for the quick reply and detailed answer. Everything works perfectly and as expected.

Thanks again!
Tim

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

Time to create page: 0.064 seconds
Powered by Kunena Forum