init
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Stemcell\Catalog\Block\Pricing\Render;
|
||||
|
||||
use Magento\Catalog\Model\Product\Pricing\Renderer\SalableResolverInterface;
|
||||
use Magento\Catalog\Pricing\Price\MinimalPriceCalculatorInterface;
|
||||
use Magento\Framework\Pricing\Price\PriceInterface;
|
||||
use Magento\Framework\Pricing\Render\RendererPool;
|
||||
use Magento\Framework\Pricing\SaleableInterface;
|
||||
use Magento\Framework\View\Element\Template\Context;
|
||||
use Stemcell\Catalog\Helper\Product\View;
|
||||
|
||||
class FinalPriceBox extends \Magento\Catalog\Pricing\Render\FinalPriceBox
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
Context $context,
|
||||
SaleableInterface $saleableItem,
|
||||
PriceInterface $price,
|
||||
RendererPool $rendererPool,
|
||||
protected View $productViewHelper,
|
||||
array $data = [],
|
||||
SalableResolverInterface $salableResolver = null,
|
||||
MinimalPriceCalculatorInterface $minimalPriceCalculator = null
|
||||
) {
|
||||
parent::__construct(
|
||||
$context,
|
||||
$saleableItem,
|
||||
$price,
|
||||
$rendererPool,
|
||||
$data,
|
||||
$salableResolver,
|
||||
$minimalPriceCalculator
|
||||
);
|
||||
}
|
||||
|
||||
protected function _toHtml()
|
||||
{
|
||||
if ($this->productViewHelper->notStockCheckGroup()) {
|
||||
return parent::_toHtml();
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user