Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Price.php
Go to the documentation of this file.
1 <?php
7 
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 }
$template
Definition: export.php:12