Пример #1
0
 /**
  * Change the basket item quantity
  *
  * @param int $quantity Quantity
  *
  * @return true
  */
 public function changeQuantity($quantity)
 {
     $this->quantity = $quantity;
     $this->priceid = $this->article->getActualPriceforScaleUid($quantity);
     $this->price = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Commerce_Domain_Model_ArticlePrice', $this->priceid, $this->lang_uid);
     $this->price->loadData();
     $this->priceNet = $this->price->getPriceNet();
     $this->priceGross = $this->price->getPriceGross();
     $this->recalculateItemSums();
     return TRUE;
 }
Пример #2
0
 /**
  * Price net
  *
  * @return float
  */
 public function getPriceNet()
 {
     $result = 'no valid price';
     if ($this->price instanceof Tx_Commerce_Domain_Model_ArticlePrice) {
         $result = $this->price->getPriceNet();
     }
     return $result;
 }