breadcrumbs from related products and best sellers

  • Posts: 5
  • Thank you received: 0
11 years 5 months ago #107196

breadcrumbs appear to be working as expected when I navigate from from menu
home -> product -> category A-> product A

on my product detail page, I've published "related products", if I select a product the breadcrumb becomes
home -> product B (whatever I selected)

how do I tell the breadcrumb to retain the structure as shown from navigation?

thanks

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #107229

Hi,


What are the links that are generated in both cases for the product ?

In think that you need to select your "product" menu in the "related products" module's "menu" option via the menu Display->Content modules of HikaShop.

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

  • Posts: 5
  • Thank you received: 0
11 years 5 months ago #107263

yeah, I see how that changed the breadcrumb. The way I see the breadcrumb working is showing you more a browse history of where you are and where you came from, is there a way to have it more show as a hierarchical representation of where your product is?

Way it seems to work:
click product, click category A, click product A, click related product z (in category B)
breadcrumb = home > products > category A > product A > product B

desired outcome, representing product B heirarchy in the store
breadcrumb = home > products > category b > product B

thanks

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #107278

That's indeed how it works.

To have it like you want you would have to change the line:
$related = JRequest::getInt($related_sef_name,0);

to:
$related = 0;

in the file components/com_hikashop/views/product/view.html.php

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

Time to create page: 0.046 seconds
Powered by Kunena Forum