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-product-alert
Block
Product
View
Price.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\ProductAlert\Block\Product\View
;
7
14
class
Price
extends
\Magento\ProductAlert\Block\Product\View
15
{
22
public
function
setTemplate
(
$template
)
23
{
24
if
(!$this->_helper->isPriceAlertAllowed()
25
|| !$this->
getProduct
() ||
26
false
=== $this->
getProduct
()->getCanShowPrice()
27
) {
28
$template
=
''
;
29
}
else
{
30
$this->setSignupUrl($this->_helper->getSaveUrl(
'price'
));
31
}
32
return
parent::setTemplate(
$template
);
33
}
34
}
Magento\ProductAlert\Block\Product\View
Definition:
View.php:11
Magento\ProductAlert\Block\Product\View
Definition:
Price.php:6
Magento\ProductAlert\Block\Product\View\Price\setTemplate
setTemplate($template)
Definition:
Price.php:22
Magento\ProductAlert\Block\Product\View\getProduct
getProduct()
Definition:
View.php:55
Magento\ProductAlert\Block\Product\View\Price
Definition:
Price.php:14
$template
$template
Definition:
export.php:12