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
Block
Customer
Sidebar.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Wishlist\Block\Customer
;
11
12
use
Magento\Catalog\Model\Product
;
13
use
Magento\Framework\Pricing\Render
;
14
19
class
Sidebar
extends
\Magento\Wishlist\Block\AbstractBlock
20
{
26
public
function
getTitle
()
27
{
28
return
__
(
'My Wish List'
);
29
}
30
41
public
function
getProductPriceHtml
(
42
Product
$product
,
43
$priceType
,
44
$renderZone =
Render::ZONE_ITEM_LIST
,
45
array
$arguments
= []
46
) {
47
if
(!isset(
$arguments
[
'zone'
])) {
48
$arguments
[
'zone'
] = $renderZone;
49
}
50
51
$price
=
''
;
52
53
$priceRender = $this->getPriceRender();
54
if
($priceRender) {
55
$price
= $priceRender->render(
$priceType
,
$product
,
$arguments
);
56
}
57
58
return
$price
;
59
}
60
66
private
function
getPriceRender()
67
{
69
$priceRender = $this->
getLayout
()->getBlock(
'product.price.render.default'
);
70
if
(!$priceRender) {
71
$priceRender = $this->
getLayout
()->createBlock(
72
\
Magento
\Framework\Pricing\Render::class,
73
'product.price.render.default'
,
74
[
75
'data'
=> [
76
'price_render_handle'
=>
'catalog_product_prices'
,
77
],
78
]
79
);
80
}
81
return
$priceRender;
82
}
83
}
Magento\Wishlist\Block\Customer\Sidebar\getProductPriceHtml
getProductPriceHtml(Product $product, $priceType, $renderZone=Render::ZONE_ITEM_LIST, array $arguments=[])
Definition:
Sidebar.php:41
Magento\Wishlist\Block\Customer\Sidebar
Definition:
Sidebar.php:19
__
__()
Definition:
__.php:13
$price
$price
Definition:
product_alert.php:10
Magento\Wishlist\Block\Customer\Sidebar\getTitle
getTitle()
Definition:
Sidebar.php:26
Magento\Framework\Pricing\Render
Definition:
AbstractAdjustment.php:7
Magento\Wishlist\Block\Customer
$priceType
$priceType
Definition:
msrp.phtml:18
Magento\Framework\View\Element\AbstractBlock\getLayout
getLayout()
Definition:
AbstractBlock.php:295
Magento\Catalog\Model\Product
Definition:
Product.php:42
Magento\Wishlist\Block\AbstractBlock
Definition:
AbstractBlock.php:17
Magento\Catalog\Model\Product
Definition:
ActionTest.php:6
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Framework\Pricing\Render\ZONE_ITEM_LIST
const ZONE_ITEM_LIST
Definition:
Render.php:30