Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-downloadable
Pricing
Price
LinkPrice.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Downloadable\Pricing\Price
;
8
9
use
Magento\Catalog\Pricing\Price\RegularPrice
;
10
use
Magento\Downloadable\Model\Link
;
11
16
class
LinkPrice
extends
RegularPrice
implements
LinkPriceInterface
17
{
21
const
PRICE_CODE
=
'link_price'
;
22
27
public
function
getLinkAmount
(
Link
$link
)
28
{
29
$price
=
$link
->getPrice();
30
$convertedPrice = $this->priceCurrency->convertAndRound(
$price
);
31
return
$this->calculator->getAmount($convertedPrice,
$link
->getProduct());
32
}
33
}
Magento\Downloadable\Pricing\Price\LinkPrice
Definition:
LinkPrice.php:16
Magento\Downloadable\Pricing\Price\LinkPriceInterface
Definition:
LinkPriceInterface.php:14
$price
$price
Definition:
product_alert.php:10
Magento\Downloadable\Model\Link
Definition:
Builder.php:6
$link
$link
Definition:
quote_with_downloadable_product.php:27
Magento\Downloadable\Model\Link
Definition:
Link.php:21
Magento\Catalog\Pricing\Price\RegularPrice
Definition:
RegularPrice.php:15
Magento\Downloadable\Pricing\Price\LinkPrice\PRICE_CODE
const PRICE_CODE
Definition:
LinkPrice.php:21
Magento\Downloadable\Pricing\Price\LinkPrice\getLinkAmount
getLinkAmount(Link $link)
Definition:
LinkPrice.php:27
Magento\Downloadable\Pricing\Price
Definition:
LinkPrice.php:7