Beispiel #1
0
 /**
  * Check - is notification "On shipment" enabled or not
  *
  * @param \XLite\Module\XC\CanadaPost\Model\Order\Parcel $parcel Canada Post parcel model
  *
  * @return boolean
  */
 public function isNotifyOnShipment(\XLite\Module\XC\CanadaPost\Model\Order\Parcel $parcel)
 {
     return $parcel->isDeliveryToPostOffice() || $parcel->getNotifyOnShipment();
 }
 /**
  * {@inheritDoc}
  */
 public function getNotifyOnShipment()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNotifyOnShipment', array());
     return parent::getNotifyOnShipment();
 }