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

#   Related products module

##

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

Less More

- Posts: 59
- Thank you received: 0
-
-

16 years 1 week ago -  16 years 1 week ago [\#1221](#1221) by [Avaray](/forum/user/250-avaray "View Avaray's Profile")  *[Related products module](/forum/3-bug-report/1221-related-products-module#1221 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")* was created by *[Avaray](/forum/user/250-avaray "View Avaray's Profile")*

I have another issue for you, sorry ![:)](/media/kunena/emoticons/3.png ":)").

I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown.
I set it up this way:
Sub elements filter = all sub elements
Parent Category = the same as products involved here.
Content on product page = related products

Also, i related two products between them, bidirectionally. "Camisa verde" is related to "pantalon Rojo" and vice versa (I don´t know it this is strictly necessary).

You can see how in both products page, the other has not been shown at the module.
[ shoptest.avaray.com/es/component/hikasho...o/category\_pathway-0](http://shoptest.avaray.com/es/component/hikashop/product/show/cid-19/name-pantalon-rojo/category_pathway-0)
[ shoptest.avaray.com/es/component/hikasho...e/category\_pathway-0](http://shoptest.avaray.com/es/component/hikashop/product/show/cid-3/name-camisa-verde/category_pathway-0)

To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?

I guess that i have lost something in my way here ![:D](/media/kunena/emoticons/1.png ":D")

Last edit: 16 years 1 week ago by [Avaray](/forum/user/250-avaray "View Avaray's Profile"). Reason: Sintaxys

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMjIxLXJlbGF0ZWQtcHJvZHVjdHMtbW9kdWxlP3RtcGw9bWFya2Rvd24=) 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: 86540
- Thank you received: 14301
-
-

16 years 1 week ago [\#1224](#1224) 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 module](/forum/3-bug-report/1221-related-products-module#1224 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")*

You need to have the content synchronization option to yes. Maybe that could explain the problem ?

For the fact that the module displays stuff on other pages, well that's the normal behavior of the module. When you don't display a product page, the module displays the elements of the category selected in the options as parent category. If you don't want it to do that, just put there a category with nothing in it. Otherwise, put the module in the "under the product page" option so that it's displayed only there.

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

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

Less More

- Posts: 59
- Thank you received: 0
-
-

16 years 6 days ago [\#1226](#1226) by [Avaray](/forum/user/250-avaray "View Avaray's Profile")  Replied by *[Avaray](/forum/user/250-avaray "View Avaray's Profile")* on topic *[Re: Related products module](/forum/3-bug-report/1221-related-products-module#1226 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")*

If you refer to "Synchronize with currently
displayed item when possible", it was on "yes" already.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMjIxLXJlbGF0ZWQtcHJvZHVjdHMtbW9kdWxlP3RtcGw9bWFya2Rvd24=) 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: 86540
- Thank you received: 14301
-
-

16 years 6 days ago [\#1230](#1230) 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 module](/forum/3-bug-report/1221-related-products-module#1230 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")*

There seems to be a bug in the query loading the related products when the ordering column is selected and that the random option is turned off in the options of the module.

If you change the code Code:

$on = ' ON a.product_related_id=b.product_id';

by the code Code:

$on = ' ON a.product_related_id=b.product_id'; if($this-&gt;params-&gt;get('product_order')=='ordering'){ $pageInfo-&gt;filter-&gt;order-&gt;value = ''; }

in the file components/com_hikashop/views/product/view.html.php near line 55, that should solve the problem.

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

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

Less More

- Posts: 59
- Thank you received: 0
-
-

16 years 6 days ago [\#1231](#1231) by [Avaray](/forum/user/250-avaray "View Avaray's Profile")  Replied by *[Avaray](/forum/user/250-avaray "View Avaray's Profile")* on topic *[Re: Related products module](/forum/3-bug-report/1221-related-products-module#1231 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")*

In this line the code is other. Very similar, but another one:

$on = ' ON b.product_related_id=a.

The "a" and "b" variables (or whatever they are) are misplaced.

Please, confirm your fix. I have no idea about programming. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMjIxLXJlbGF0ZWQtcHJvZHVjdHMtbW9kdWxlP3RtcGw9bWFya2Rvd24=) 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: 86540
- Thank you received: 14301
-
-

16 years 6 days ago [\#1232](#1232) 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 module](/forum/3-bug-report/1221-related-products-module#1232 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")*

I confirm that the modification is the good one even when a and b are inverted (a bug which was corrected by the latest version yesterday).

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

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

Less More

- Posts: 59
- Thank you received: 0
-
-

16 years 6 days ago [\#1235](#1235) by [Avaray](/forum/user/250-avaray "View Avaray's Profile")  Replied by *[Avaray](/forum/user/250-avaray "View Avaray's Profile")* on topic *[Re: Related products module](/forum/3-bug-report/1221-related-products-module#1235 "I have another issue for you, sorry :).  I created a module at the left part of the page. This module has been configurated to display Related products to the ones which are being shown. I set it up this way: Sub elements filter = all sub elements Parent Category = the same as products involved here. Content on product page = related products  Also, i related two products between them, bidirectionally. &quot;Camisa verde&quot; is related to &quot;pantalon Rojo&quot; and vice versa (I don´t know it this is strictly necessary).  You can see how in both products page, the other has not been shown at the module.   shoptest.avaray.com/es/component/hikasho...o/category&#95;pathway-0    shoptest.avaray.com/es/component/hikasho...e/category&#95;pathway-0  To make things a bit more complicated, if you go to the site main page, you will find the Related products module fullfilled with products.... related to what?  I guess that i have lost something in my way here :D")*

Again, an excellent support.

I am starting to feel myself as an official Hikashop tester ![:D](/media/kunena/emoticons/1.png ":D").

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

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