예제 #1
0
 /**
  * @param Link $link
  * @return \Magento\Framework\Pricing\Amount\AmountInterface
  */
 public function getLinkAmount(Link $link)
 {
     return $this->calculator->getAmount($link->getPrice(), $link->getProduct());
 }
예제 #2
0
 /**
  * @param Link $link
  * @return \Magento\Framework\Pricing\Amount\AmountInterface
  */
 public function getLinkAmount(Link $link)
 {
     $price = $link->getPrice();
     $convertedPrice = $this->priceCurrency->convertAndRound($price);
     return $this->calculator->getAmount($convertedPrice, $link->getProduct());
 }