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

#   set specific category for related products

##

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

Less More

- Posts: 251
- Thank you received: 2
-
-

14 years 10 months ago [\#33402](#33402) by [Nello](/forum/user/1361-nello "View Nello's Profile")  *[set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33402 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")* was created by *[Nello](/forum/user/1361-nello "View Nello's Profile")*

Hi Nicolas it is possible to set a specific category for the url of related products?

i.e.

[ www.mysite.com/maincategory/product/show/product-nameX](http://www.mysite.com/maincategory/product/show/product-nameX)
In this product page I can have some related products that have "maincategory" in their url

I can also have
[ www.mysite.com/categoryXXX/product/show/product-nameY](http://www.mysite.com/categoryXXX/product/show/product-nameY)

In this product page the url of the related products it will be
[ www.mysite.com/categoryXXX/product/show/...meA/related\_productB](http://www.mysite.com/categoryXXX/product/show/product-nameA/related_productB)

It is possible to always have "maincategory" so

[ www.mysite.com/maincategory/product/show...meA/related\_productB](http://www.mysite.com/maincategory/product/show/product-nameA/related_productB)

I hope it's clear.

Thank you!

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#33461](#33461) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33461 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Hi,

Yes, it's possible. You should edit the hikashop options of your related products module and select the menu which uses that "maincategory" alias in the "menu" option. You can access the hikashop options of your module via the menu Display-&gt;Content modules.

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

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

Less More

- Posts: 251
- Thank you received: 2
-
-

14 years 10 months ago [\#33519](#33519) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33519 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Maybe I didn't understood!

I selected the menu which uses "maincategory" in the related products module but, as you can see in the image, nothing changes

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/category.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/category.jpg "&#91;img")

In my case the maincategory is "catalogo" but in the bottom of page, the category in the url is "top-design"

- [ ![category.jpg](/forum/attachment/2288) ](/forum/attachment/2288 "category.jpg") [ ](/forum/attachment/2288?download=1 "category.jpg")

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#33565](#33565) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33565 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Could you add the code:
$module_item_id = $this-&gt;params-&gt;get('itemid');
if(!empty($module_item_id)){
$url_itemid='&amp;Itemid='.(int)$module_item_id;
}

before the code:
if(empty($category_pathway) &amp;&amp; !empty($menu) &amp;&amp; strpos($menu-&gt;link,'option='.HIKASHOP_COMPONENT)!==false &amp;&amp; (strpos($menu-&gt;link,'view=category')!==false &#124;&#124; strpos($menu-&gt;link,'view=')===false) &amp;&amp; !JRequest::getInt('no_cid',0)){
$category_pathway = '&amp;category_pathway='.reset($pageInfo-&gt;filter-&gt;cid);
}

in the file components/com_hikashop/views/product/view.html.php and try again (making sure that you selected the menu you want in the menu option of your module ) ?

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

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

Less More

- Posts: 251
- Thank you received: 2
-
-

14 years 10 months ago [\#33611](#33611) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33611 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Great! It works!

Thank you!

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#33613](#33613) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33613 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

We'll add that modification in next release.

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

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

Less More

- Posts: 251
- Thank you received: 2
-
-

14 years 10 months ago [\#33615](#33615) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33615 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Great work!
This modification, without "related_product" and "category_patway" at the end of urls prevents some of content duplications.

![;)](/media/kunena/emoticons/11.png ";)")

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#33644](#33644) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33644 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

The related_product and category_pathway parameters are needed to calculate the breadcrumbs correctly. That's why we can't just remove them. But we'll look at adding an option for that in a future release.

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

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

Less More

- Posts: 251
- Thank you received: 2
-
-

14 years 10 months ago [\#33684](#33684) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#33684 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Sure! I know!
but you should find a way to create url not indexable by search engines, with this parameters. ![;)](/media/kunena/emoticons/11.png ";)")

I have much problems of duplicated contents, cause of different categories... and I'm working hard to resolve.

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

- **[wildfire](/forum/user/4403-wildfire "View wildfire's Profile")**
- [![wildfire's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4403.jpg)](/forum/user/4403-wildfire "View wildfire's Profile")
- [ Offline](/forum/user/4403-wildfire)
- eCommerce Maven

Less More

- Posts: 60
- Thank you received: 9
-
-
-
- [](http://www.davekarlsven.com)
-

14 years 7 months ago [\#41685](#41685) by [wildfire](/forum/user/4403-wildfire "View wildfire's Profile")  Replied by *[wildfire](/forum/user/4403-wildfire "View wildfire's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#41685 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

We upgraded to the latest version of hikashop 1.5.6 but we are not seeing the feature to turn off the ?related_product= in the URLs.

We are getting lots of duplicate content for this and would like to remove that from our product urls.

In the 1.5.6 changelog it says:

"You can now have URLs without the category_pathway and related_product parameters thanks to a new option of the configuration for SEF. It is activated by default only for new installations "

We did an upgrade instead of a new installation. Where do we go to activate this?

I have attached a screen shot of what we are seeing in our configuration area in the SEF url options. Is there somewhere else we go to activate this?

---

Ecommerce expert for hire. [ DaveKarlsven.com](http://www.davekarlsven.com)

I love helping businesses make lots of money online.

- [ ![sef&#95;hikashop&#95;config.JPG](/forum/attachment/2978) ](/forum/attachment/2978 "...hop&#95;config.JPG") [ ](/forum/attachment/2978?download=1 "...hop&#95;config.JPG")

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 7 months ago [\#41859](#41859) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#41859 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

It's the option "simplified breadcrumbs" which needs to be turned on as you already did.

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

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

Less More

- Posts: 251
- Thank you received: 2
-
-

14 years 7 months ago [\#41924](#41924) by [Nello](/forum/user/1361-nello "View Nello's Profile")  Replied by *[Nello](/forum/user/1361-nello "View Nello's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#41924 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Hi Wildfire,

for me the only and simply way to solve the problem of duplicated contents is to set to "no index" the parameters "related_product" and "category_pathway" through the google webmaster tool...
If the pages with this parameters are already indexed, it still be reachable as well.

Bye

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

- **[wildfire](/forum/user/4403-wildfire "View wildfire's Profile")**
- [![wildfire's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4403.jpg)](/forum/user/4403-wildfire "View wildfire's Profile")
- [ Offline](/forum/user/4403-wildfire)
- eCommerce Maven

Less More

- Posts: 60
- Thank you received: 9
-
-
-
- [](http://www.davekarlsven.com)
-

14 years 7 months ago [\#41982](#41982) by [wildfire](/forum/user/4403-wildfire "View wildfire's Profile")  Replied by *[wildfire](/forum/user/4403-wildfire "View wildfire's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#41982 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Nicolas,

We set the "Simplified Breadcrumbs" option to "Yes", but the "related_produt=..." is still showing up on the end of our URLs.

Is there anything else that needs to be changed to get rid of the parameters on the end of the related products urls?

Here is an example of a page on our site with the related products so you can see what the related product urls look like:

[ www.glasstilewarehouse.com/khaki-tan-blend](http://www.glasstilewarehouse.com/khaki-tan-blend)

---

Ecommerce expert for hire. [ DaveKarlsven.com](http://www.davekarlsven.com)

I love helping businesses make lots of money online.

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 7 months ago [\#42061](#42061) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#42061 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

I checked the code and I think that there is a piece missing.

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

add the code:
Code:

if($config-&gt;get('simplified_breadcrumbs',1)){ $category_pathway=''; }

before the code Code:

$this-&gt;assignRef('category_pathway',$category_pathway);

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

- **[wildfire](/forum/user/4403-wildfire "View wildfire's Profile")**
- [![wildfire's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4403.jpg)](/forum/user/4403-wildfire "View wildfire's Profile")
- [ Offline](/forum/user/4403-wildfire)
- eCommerce Maven

Less More

- Posts: 60
- Thank you received: 9
-
-
-
- [](http://www.davekarlsven.com)
-

14 years 7 months ago [\#42148](#42148) by [wildfire](/forum/user/4403-wildfire "View wildfire's Profile")  Replied by *[wildfire](/forum/user/4403-wildfire "View wildfire's Profile")* on topic *[Re: set specific category for related products](/forum/4-how-to/33402-set-specific-category-for-related-products#42148 "Hi Nicolas it is possible to set a specific category for the url of related products?  i.e.    www.mysite.com/maincategory/product/show/product-nameX  In this product page I can have some related products that have &quot;maincategory&quot; in their url  I can also have   www.mysite.com/categoryXXX/product/show/product-nameY  In this product page the url of the related products it will be   www.mysite.com/categoryXXX/product/show/...meA/related&#95;productB  It is possible to always have &quot;maincategory&quot; so    www.mysite.com/maincategory/product/show...meA/related&#95;productB  I hope it's clear.  Thank you!")*

Thanks, Nicolas. That did the trick.

We now have very SEO friendly URLs on our site with absolutely no duplicate content issues, thanks to Hikashop and AceSEF.

Awesome!

---

Ecommerce expert for hire. [ DaveKarlsven.com](http://www.davekarlsven.com)

I love helping businesses make lots of money online.

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

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

[](#top)
