Skip to main content

Brand without current item

13 years 11 months ago - 13 years 11 months ago #80996 by dynamicvitality
I have a content module that is displaying items from the "same brand" However, the current product is displayed in there as well, which is weird. I cannot figure out how to get the module to show "items from the same brand, excluding the current item"
Last edit: 13 years 11 months ago by dynamicvitality.

Please Log in or Create an account to join the conversation.

13 years 11 months ago #81118 by nicolas
Replied by nicolas on topic Brand without current item
There is no option to exclude the product itself from the listing.

Please Log in or Create an account to join the conversation.

13 years 11 months ago #81120 by nicolas
Replied by nicolas on topic Brand without current item
Actually, you can try to add the code:
$filters[]='b.product_id!='.$product_id;
$filters[]='b.product_parent_id!='.$product_id;

after the line:
$query = "SELECT product_manufacturer_id FROM ".hikashop_table('product').' WHERE product_id='.$product_id.' OR product_parent_id='.$product_id;

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

Please Log in or Create an account to join the conversation.

13 years 11 months ago #81137 by dynamicvitality
I really appreciate Hikashops excellent customer service. Thank you for all your help!

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum