예제 #1
0
 /**
  * Get modifier
  *
  * @return \XLite\Model\Order\Modifier
  */
 protected function getModifier()
 {
     if (null === $this->modifier) {
         $this->modifier = $this->getOrderEntity()->getModifier(\XLite\Model\Base\Surcharge::TYPE_SHIPPING, 'SHIPPING');
         $this->modifier->setMode(\XLite\Logic\Order\Modifier\AModifier::MODE_CART);
         $this->method = $this->modifier->getMethod();
     }
     return $this->modifier;
 }