[Skip to main content](#vessel-content)

#   breadcrumbs and module position

##

- **[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")**
- [![diacotm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52238-diacotm "View diacotm's Profile") Topic Author
- [ Offline](/forum/user/52238-diacotm)

Less More

- Posts: 47
- Thank you received: 3
-
-

2 years 3 months ago [\#362289](#362289) by [diacotm](/forum/user/52238-diacotm "View diacotm's Profile")  *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362289 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")* was created by *[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")*

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.1.13
-- Browser(s) name and version -- : firefox

Hi,
when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display "Home/'Product name'" and in the top area of product page I have unwanted module with module position,
what should I do to make a product have the same breadcrumbs as when opened through the category listing?

Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

2 years 3 months ago [\#362290](#362290) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362290 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Hi,

The goal of the breadcrumbs is to allow the user to know where he comes from. So it's normal that by default, if he comes from a module, the breadcrumbs doesn't display the path through a category, since he actually didn't go through a category to reach the page.

Note that this means that if you have several ways to access a product page, you'll have different URLs to reach it. This will cause "duplicate content" issues with SEO.
To avoid this problem, you want to enter the main URL of each product in the "canonical URL" field of each product.
This way, it will tell search engines that regardless the URL they use to reach the product page, this is the main URL you want to be indexed for this page.

Following this, if you want your users to also always use that same URL to access the product page (so you can for example make sure that the breadcrumbs is consistent, regardless from where you access the product page), you can turn on the "force canonical URLs on listings" setting of the HikaShop configuration page so that it uses the canonical URL.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")**
- [![diacotm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52238-diacotm "View diacotm's Profile") Topic Author
- [ Offline](/forum/user/52238-diacotm)

Less More

- Posts: 47
- Thank you received: 3
-
-

2 years 3 months ago [\#362328](#362328) by [diacotm](/forum/user/52238-diacotm "View diacotm's Profile")  Replied by *[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362328 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Hi,
Thanks for your clear response,
when I link the module to a menu option, the link and breadcrumbs will be OK,
I designed two modules for Hikashop with a custom layout, but I can't add a menu option to them to fix the breadcrumbs issue, is it possible to send them and help me with them?
Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

2 years 3 months ago [\#362335](#362335) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362335 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Hi,

Sure. You can attach them here. If you want to send them privately, you can go through our contact form:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)
But normally, it's quite easy.
Where you generate the URL of the products in your module's code, you can just add the parameter &amp;Itemid=xxx in the URL, where xxx is the id of the menu item you want to use.
That's basically what HikaShop does when you provide a menu item in the menu setting of the HikaShop content module.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")**
- [![diacotm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52238-diacotm "View diacotm's Profile") Topic Author
- [ Offline](/forum/user/52238-diacotm)

Less More

- Posts: 47
- Thank you received: 3
-
-

2 years 3 months ago [\#362346](#362346) by [diacotm](/forum/user/52238-diacotm "View diacotm's Profile")  Replied by *[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362346 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Hi,
Thanks again
here are both modules:
mod_hikashop_2x2productdisplayRev02:
[ ![mod2x2.png](/forum/attachment/59548) ](/forum/attachment/59548 "mod2x2.png")

mod_hikashop_category_products-Rev02
[ ![mod-cat-retrive.png](/forum/attachment/59549) ](/forum/attachment/59549 "...at-retrive.png")

Thanks in advance

- [ ![mod2x2.png](/forum/attachment/59548) ](/forum/attachment/59548 "mod2x2.png") [ ](/forum/attachment/59548?download=1 "mod2x2.png")
- [ ![mod-cat-retrive.png](/forum/attachment/59549) ](/forum/attachment/59549 "...at-retrive.png") [ ](/forum/attachment/59549?download=1 "...at-retrive.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

2 years 3 months ago [\#362348](#362348) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362348 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Hi,

Well, that's exactly what I was saying in my previous message.
For example, in the file tmpl/default.php of the first module mod_hikashop_2x2productdisplayRev02-Nobreadcrumbs.zip you have the line: Code:

&lt;a class="hphimod4pconrca" href="&lt;?php echo JRoute::_('index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid=' . $item-&gt;product_id); ?&gt;"&gt;

You want to change it to: Code:

&lt;a class="hphimod4pconrca" href="&lt;?php echo JRoute::_('index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid=' . $item-&gt;product_id.'&amp;Itemid=xx'); ?&gt;"&gt;

where xx is the id of the menu item you want to be used by the module.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")**
- [![diacotm's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52238-diacotm "View diacotm's Profile") Topic Author
- [ Offline](/forum/user/52238-diacotm)

Less More

- Posts: 47
- Thank you received: 3
-
-

2 years 3 months ago [\#362392](#362392) by [diacotm](/forum/user/52238-diacotm "View diacotm's Profile")  Replied by *[diacotm](/forum/user/52238-diacotm "View diacotm's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362392 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Perfect!
I added a filed to the admin area to let user enter the menu id and add to the link that you mentioned and now breadcrumbs work perfectly!
I use the product id to let the module access the product, what is the default address for the hikashop link when opening the product?

Thank you so much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

2 years 3 months ago [\#362394](#362394) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[breadcrumbs and module position](/forum/31-development/908432-breadcrumbs-and-module-position#362394 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1.13 -- Browser(s) name and version -- : firefox  Hi, when opening a product through the category listing, everything seems ok, I mean the breadcrumbs display a complete path to the top category and on the product's page there is no module with a module position in the product's top area but when I use the HikaShop Content Module and open a product though the module, breadcrumbs just display &quot;Home/'Product name'&quot; and in the top area of product page I have unwanted module with module position, what should I do to make a product have the same breadcrumbs as when opened through the category listing?  Thanks in advance")*

Hi,

It's almost this URL. We also add a parameter "name" to the URL with the alias of the product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50LzkwODQzMi1icmVhZGNydW1icy1hbmQtbW9kdWxlLXBvc2l0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
