Beispiel #1
0
 /**
  * Check if the simple class is used for widget displaying
  *
  * @param array                $column
  * @param \XLite\Model\AEntity $entity
  *
  * @return boolean
  */
 protected function isClassColumnVisible(array $column, \XLite\Model\AEntity $entity)
 {
     $result = parent::isClassColumnVisible($column, $entity);
     if ($result && $this->isPitneyBowesProcessor($entity) && 'handlingFee' == $column[static::COLUMN_CODE]) {
         $result = false;
     }
     return $result;
 }
Beispiel #2
0
 /**
  * Check if the simple class is used for widget displaying
  *
  * @param array                $column
  * @param \XLite\Model\AEntity $entity
  *
  * @return boolean
  */
 protected function isClassColumnVisible(array $column, \XLite\Model\AEntity $entity)
 {
     $result = parent::isClassColumnVisible($column, $entity);
     if ($result && 'handlingFee' === $column[static::COLUMN_CODE] && 'offline' === $entity->getProcessor() && (\XLite\Model\Shipping\Method::METHOD_TYPE_FIXED_FEE === $entity->getCode() || $entity->getFree())) {
         $result = false;
     }
     return $result;
 }