コード例 #1
0
 /**
  * Retrieve collection class
  *
  * @return string
  */
 protected function _getCollectionClass()
 {
     $status = Mage::getStoreConfig('ordercomment/ordercomment_group/ordercomment_enable');
     if ($status == 1) {
         return 'ordercomment/order_grid_collection';
     } else {
         return parent::_getCollectionClass();
     }
 }