Exemplo n.º 1
0
 /**
  * Process loaded collection data
  *
  * @return $this
  */
 protected function _afterLoadData()
 {
     parent::_afterLoadData();
     $this->addCustomerTaxClassesToResult();
     $this->addProductTaxClassesToResult();
     $this->addRatesToResult();
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Ad information about attribute sets to collection result data
  *
  * @return \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
  */
 protected function _afterLoadData()
 {
     $this->_addSetInfo();
     return parent::_afterLoadData();
 }
Exemplo n.º 3
0
 /**
  * @return $this
  */
 protected function _afterLoadData()
 {
     parent::_afterLoadData();
     if ($this->_addDaysInWishlist) {
         $gmtOffset = (int) $this->_date->getGmtOffset();
         $nowTimestamp = $this->_date->timestamp();
         foreach ($this as $wishlistItem) {
             $wishlistItemTimestamp = $this->_date->timestamp($wishlistItem->getAddedAt());
             $wishlistItem->setDaysInWishlist((int) (($nowTimestamp - $gmtOffset - $wishlistItemTimestamp) / 24 / 60 / 60));
         }
     }
     return $this;
 }