helper = $helper; $this->registry = $registry; } /** * @param ConfPlugin $subject * @param $result * * @return mixed */ public function afterGetMatrixTitles( ConfPlugin $subject, $result ) { /** @var Product $product */ $product = $this->registry->registry('current_product'); if ($product && $this->helper->getModuleConfig('information/hide_price') && $product->getTypeId() == ConfigurableType::TYPE_CODE && $this->helper->isApplied($product) ) { unset($result['price']); unset($result['subtotal']); } return $result; } }