scopeConfig = $scopeConfig; $this->request = $request; } /** * * @param \Magento\Catalog\Block\Product\View $subject * @param bool $result * @return bool */ public function afterShouldRenderQuantity( \Magento\Catalog\Block\Product\View $subject, $result) { if ($this->request->getFullActionName() == 'weltpixel_quickview_catalog_product_view') { $removeQtySelector = $this->scopeConfig->getValue(self::XML_PATH_QUICKVIEW_REMOVE_QTY, \Magento\Store\Model\ScopeInterface::SCOPE_STORE); return !$removeQtySelector; } return $result; } }