-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedbug report
Description
This might have some similarities with #4400, but I cannot seem to rewrite Magento\ConfigurableProduct\Block\Product\View\Type\Configurable
using di.xml
Preconditions
- Version 2.1.2
Steps to reproduce
- Create a
di.xml
with:
<preference for="Magento\ConfigurableProduct\Block\Product\View\Type\Configurable"
type="Vendor\Module\Rewrite\Magento\ConfigurableProduct\Block\Product\View\Type\Configurable"/>
- Create the class
Vendor\Module\Rewrite\Magento\ConfigurableProduct\Block\Product\View\Type\Configurable
:
class Configurable extends \Magento\ConfigurableProduct\Block\Product\View\Type\Configurable
{
/**
* Override the template.
* @return string
*/
protected function _toHtml()
{
die;
return parent::_toHtml();
}
}
Expected result
- It should
die()
.
Actual result
- It does not.
Metadata
Metadata
Assignees
Labels
Issue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedbug report