Simple product visibility igonored

I have 4 simple products that I use to build a configurable product. Each of these simple products have the Visible attribute set to "Not Visible Individually". However, in layered navigation, if I select the manufacturer, all 4 products show up in the list, besides the configurable one. Seems that jmproducts ignores the visibility setting?
Thanks!

1 answer

Profile photo of Sherlock 0.00 $tone October 14, 2013
Public

Hi Stingus,

you can open the file of app\code\local\JoomlArt\JmProducts\Block\Filter.ph p there at around line number 168 you would see this line of code

PHP Code:

 $this->setProductCollection $products ); 




just add right below it this code

PHP Code:

 Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products); 




I hope the change helps, if it does not you can pm me your url, the admin account as well as FTP info for further checking

#1

Please login or Register to Submit Answer

Written By

Comments