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

#   variantname for breadcrump

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

8 years 5 months ago [\#293553](#293553) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[variantname for breadcrump](/forum/32-content-creation/894899-variantname-for-breadcrump#293553 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  Is there a way to have the variantname displayed in the breadcrump?  Now it always shows the productname, even when using a canonical url for the variant. f.e.:   jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1  B.R.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.0

Hi,

Is there a way to have the variantname displayed in the breadcrump?

Now it always shows the productname, even when using a canonical url for the variant.
f.e.: [ jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1](https://jouwnaambord.nl/aluminium-basis-naambordjes/product/2581-basis-naambordje-1)

B.R.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0ODk5LXZhcmlhbnRuYW1lLWZvci1icmVhZGNydW1wP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 5 months ago [\#293556](#293556) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[variantname for breadcrump](/forum/32-content-creation/894899-variantname-for-breadcrump#293556 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  Is there a way to have the variantname displayed in the breadcrump?  Now it always shows the productname, even when using a canonical url for the variant. f.e.:   jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1  B.R.")*

Hi,

There is no option for that.
You would have a view file of the product page like product / show.php and add custom PHP to fill in the breacrumb yourself:
[ www.samontheweb.co.uk/add-or-remove-item...a-breadcrumb-system/](https://www.samontheweb.co.uk/add-or-remove-items-in-joomla-breadcrumb-system/)
Or you could also change the code in components/com_hikashop/views/product/view.html.php : Code:

$pathway-&gt;addItem($product_name, hikashop_completeLink('product&amp;task=show&amp;cid='.(int)$element-&gt;product_id.'&amp;name='.$element-&gt;alias.$category_pathway.$url_itemid));

Instead of $product_name, you could use $this-&gt;element-&gt;product_name

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

8 years 5 months ago [\#293584](#293584) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[variantname for breadcrump](/forum/32-content-creation/894899-variantname-for-breadcrump#293584 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  Is there a way to have the variantname displayed in the breadcrump?  Now it always shows the productname, even when using a canonical url for the variant. f.e.:   jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1  B.R.")*

Hi Nicolas,

Thanks, I changed the line in the component. It changes the breadcrumb to the right name, but also adds a &lt;span class&gt; to it:

[ jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1](https://jouwnaambord.nl/aluminium-basis-naambordjes/product/2581-basis-naambordje-1)

Is there a way to strip this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0ODk5LXZhcmlhbnRuYW1lLWZvci1icmVhZGNydW1wP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

8 years 5 months ago [\#293588](#293588) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[variantname for breadcrump](/forum/32-content-creation/894899-variantname-for-breadcrump#293588 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  Is there a way to have the variantname displayed in the breadcrump?  Now it always shows the productname, even when using a canonical url for the variant. f.e.:   jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1  B.R.")*

Hi,

You can use the strip_tags function on the variable $product_name.
So instead of $product_name you would have strip_tags($product_name)

The following user(s) said Thank You: [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

8 years 5 months ago [\#293675](#293675) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[variantname for breadcrump](/forum/32-content-creation/894899-variantname-for-breadcrump#293675 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  Is there a way to have the variantname displayed in the breadcrump?  Now it always shows the productname, even when using a canonical url for the variant. f.e.:   jouwnaambord.nl/aluminium-basis-naambord...1-basis-naambordje-1  B.R.")*

Thanks Nicolas,

That's just the way I wanted it.

Michel.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk0ODk5LXZhcmlhbnRuYW1lLWZvci1icmVhZGNydW1wP3RtcGw9bWFya2Rvd24=) 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.058 seconds

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