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

#   Related Products URL

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 6 months ago [\#46251](#46251) by [Techie1000](/forum/user/6550-techie1000 "View Techie1000's Profile")  *[Related Products URL](/forum/4-how-to/46251-related-products-url#46251 "Hi,  I have two categories which i wanted different layouts for on the product page. I achieved this by using a Page Class Suffix in the Joomla menu options - so far so good.  On each of the product pages i have a module at the bottom to display related products. This shows items from both categories.  Due to the way that the URL for the related item is created it contains the original product item category. This means that the Page Class Suffix is also used. Is there a way to change this so that it uses the category of the item the URL points to?  URL created is:   www.occasionalsilver.co.uk/ category1/14-1oz-suisse-gold-silver-bullion-bar-personalised  URL wanted is:   www.occasionalsilver.co.uk/ category2/14-1oz-suisse-gold-silver-bullion-bar-personalised  Hope that sort of makes sense.  CHRIS")* was created by *[Techie1000](/forum/user/6550-techie1000 "View Techie1000's Profile")*

Hi,

I have two categories which i wanted different layouts for on the product page. I achieved this by using a Page Class Suffix in the Joomla menu options - so far so good.

On each of the product pages i have a module at the bottom to display related products. This shows items from both categories.

Due to the way that the URL for the related item is created it contains the original product item category. This means that the Page Class Suffix is also used. Is there a way to change this so that it uses the category of the item the URL points to?

URL created is: [ www.occasionalsilver.co.uk/](http://www.occasionalsilver.co.uk/)**category1**/14-1oz-suisse-gold-silver-bullion-bar-personalised

URL wanted is: [ www.occasionalsilver.co.uk/](http://www.occasionalsilver.co.uk/)**category2**/14-1oz-suisse-gold-silver-bullion-bar-personalised

Hope that sort of makes sense.

CHRIS

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

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 6 months ago [\#46316](#46316) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Related Products URL](/forum/4-how-to/46251-related-products-url#46316 "Hi,  I have two categories which i wanted different layouts for on the product page. I achieved this by using a Page Class Suffix in the Joomla menu options - so far so good.  On each of the product pages i have a module at the bottom to display related products. This shows items from both categories.  Due to the way that the URL for the related item is created it contains the original product item category. This means that the Page Class Suffix is also used. Is there a way to change this so that it uses the category of the item the URL points to?  URL created is:   www.occasionalsilver.co.uk/ category1/14-1oz-suisse-gold-silver-bullion-bar-personalised  URL wanted is:   www.occasionalsilver.co.uk/ category2/14-1oz-suisse-gold-silver-bullion-bar-personalised  Hope that sort of makes sense.  CHRIS")*

Hi,

There is no option to do that.
You would have to edit the file "listing_img_title" (if that's the item box layout you're using for your related module) of the view "product" via the menu Display-&gt;Views in order to change the Itemid parameter of the URL to one or the other menu dynamically.

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

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

[](#top)
