/**
  * @param \XLite\Model\OrderItem $orderItem Order item
  * 
  * @return array
  */
 protected function getBasketLine(\XLite\Model\OrderItem $orderItem)
 {
     return array('lineId' => $orderItem->getSku(), 'currency' => $orderItem->getOrder()->getCurrency()->getCode(), 'quantity' => $orderItem->getAmount(), 'unitPrice' => array('price' => array('value' => $orderItem->getItemNetPrice()), 'codPrice' => array(), 'dutiableValue' => array('value' => $orderItem->getItemNetPrice())), 'commodity' => array('merchantComRefId' => $orderItem->getSku(), 'descriptions' => array(), 'hsCodes' => array(), 'imageUrls' => array(), 'identifiers' => array(), 'attributes' => array(), 'hazmats' => array(), 'categories' => array()), 'kitContents' => array());
 }
Beispiel #2
0
 /**
  * Get order item data specific field value
  *
  * @param \XLite\Model\OrderItem $entity OrderItem entity
  *
  * @return array
  */
 protected function getOrderItemDataFieldValuePrice($entity)
 {
     return $this->getOrder()->getCurrency()->roundValue($entity->getItemNetPrice());
 }
 /**
  * {@inheritDoc}
  */
 public function getItemNetPrice()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getItemNetPrice', array());
     return parent::getItemNetPrice();
 }