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