Brand without current item

  • Posts: 35
  • Thank you received: 2
13 years 2 weeks ago #80996

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 2 weeks ago by dynamicvitality.

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

  • Posts: 84868
  • Thank you received: 13820
  • MODERATOR
13 years 2 weeks ago #81118

There is no option to exclude the product itself from the listing.

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

  • Posts: 84868
  • Thank you received: 13820
  • MODERATOR
13 years 2 weeks ago #81120

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.

  • Posts: 35
  • Thank you received: 2
13 years 2 weeks ago #81137

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.054 seconds
Powered by Kunena Forum