Пример #1
0
 public function __construct()
 {
     parent::__construct();
     return $this;
 }
Пример #2
0
 protected function _joinFields()
 {
     parent::_joinFields();
     $this->addAttributeToSelect('price')->addCartsCount()->addOrdersCount();
 }
 /**
  * Limit product reports
  *
  * @param  Mage_Reports_Model_Mysql4_Product_Collection $collection
  */
 public function limitProductReports($collection)
 {
     $collection->addStoreRestrictions($this->_role->getStoreIds(), $this->_role->getRelevantWebsiteIds());
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->_joinFields();
     return $this;
 }