Magento PHP : Products without parents -


in magento, on script filter products don't have parent product. :

$products = $this->_productmodel->getcollection()     ->addattributetoselect('*')     ->addstorefilter($this->_storeid)     ->addattributetofilter('type_id',array('in'=>$_types))     ->addattributetofilter('status',array('in'=>$_status))     ->jointable('cataloginventory/stock_item', 'product_id=entity_id', array('qty'=>'qty','is_in_stock' => 'is_in_stock'), $this->_getstocksql(), 'inner'); 

i got products, can "give me products without parents" using getcollection() ?

thanks

parent product , child product avialable in grouped, configurable, , bundle product. if don't want parent product

check if id in parent_id in catalog_product_relation , catlog_product_super_link parent product


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -