Example #1
0
 /**
  * Check - is Canada Post post office is applicable for this order or not
  *
  * @param \XLite\Module\XC\CanadaPost\Model\Order\PostOffice $office Canada Post post office object
  *
  * @return boolean
  */
 public function isCapostOfficeApplicable(\XLite\Module\XC\CanadaPost\Model\Order\PostOffice $office)
 {
     return $this->isSelectedMethodSupportDeliveryToPO() && $this->isCapostOfficeAvailable($office->getOfficeId());
 }
 /**
  * {@inheritDoc}
  */
 public function prepareEntityBeforeCommit($type)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type));
     return parent::prepareEntityBeforeCommit($type);
 }