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-catalog
Pricing
Price
RegularPrice.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Pricing\Price
;
8
9
use
Magento\Framework\Pricing\Price\AbstractPrice
;
10
use
Magento\Framework\Pricing\Price\BasePriceProviderInterface
;
11
15
class
RegularPrice
extends
AbstractPrice
implements
BasePriceProviderInterface
16
{
20
const
PRICE_CODE
=
'regular_price'
;
21
27
public
function
getValue
()
28
{
29
if
($this->
value
===
null
) {
30
$price
= $this->product->getPrice();
31
$priceInCurrentCurrency = $this->priceCurrency->convertAndRound(
$price
);
32
$this->
value
= $priceInCurrentCurrency ? (float)$priceInCurrentCurrency : 0;
33
}
34
return
$this->value
;
35
}
36
}
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
Magento\Catalog\Pricing\Price\RegularPrice\getValue
getValue()
Definition:
RegularPrice.php:27
$price
$price
Definition:
product_alert.php:10
Magento\Catalog\Pricing\Price\RegularPrice\PRICE_CODE
const PRICE_CODE
Definition:
RegularPrice.php:20
Magento\Framework\Pricing\Price\AbstractPrice
Definition:
AbstractPrice.php:21
Magento\Framework\Pricing\Price\AbstractPrice\$value
$value
Definition:
AbstractPrice.php:61
Magento\Framework\Pricing\Price\BasePriceProviderInterface
Definition:
BasePriceProviderInterface.php:15
Magento\Catalog\Pricing\Price\RegularPrice
Definition:
RegularPrice.php:15
Magento\Catalog\Pricing\Price
Definition:
BasePrice.php:7