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-wishlist
Pricing
Render
ConfiguredPriceBox.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Wishlist\Pricing\Render
;
7
8
use
Magento\Catalog\Model\Product\Configuration\Item\ItemInterface
;
9
10
class
ConfiguredPriceBox
extends
\Magento\Catalog\Pricing\Render\ConfiguredPriceBox
11
{
15
protected
function
getCacheLifetime
()
16
{
17
return
null
;
18
}
19
23
protected
function
_prepareLayout
()
24
{
26
$price
= $this->
getPrice
();
27
29
$renderBlock = $this->getRenderBlock();
30
if
(!$renderBlock && $this->getItem() instanceof
ItemInterface
) {
31
$price
->setItem($this->getItem());
32
}
33
34
return
parent::_prepareLayout();
35
}
36
}
Magento\Wishlist\Pricing\Render\ConfiguredPriceBox\getCacheLifetime
getCacheLifetime()
Definition:
ConfiguredPriceBox.php:15
Magento\Catalog\Model\Product\Configuration\Item\ItemInterface
Definition:
ItemInterface.php:15
Magento\Framework\Pricing\Render\PriceBox\getPrice
getPrice()
Definition:
PriceBox.php:103
Magento\Wishlist\Pricing\Render
Definition:
ConfiguredPriceBox.php:6
Magento\Wishlist\Pricing\Render\ConfiguredPriceBox
Definition:
ConfiguredPriceBox.php:10
Magento\Framework\Pricing\Render\PriceBox\$price
$price
Definition:
PriceBox.php:34
Magento\Framework\View\Element\AbstractBlock\_prepareLayout
_prepareLayout()
Definition:
AbstractBlock.php:284