Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class Product
protected $catalogSession;

/**
* @param \Magento\ConfigurableProduct\Model\Resource\Product\Type\Configurable $catalogProductTypeConfigurable
* @param \Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable $catalogProductTypeConfigurable
* @param \Magento\Catalog\Model\Session $catalogSession
*/
public function __construct(
\Magento\ConfigurableProduct\Model\Resource\Product\Type\Configurable $catalogProductTypeConfigurable,
\Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable $catalogProductTypeConfigurable,
\Magento\Catalog\Model\Session $catalogSession
) {
$this->catalogProductTypeConfigurable = $catalogProductTypeConfigurable;
Expand Down Expand Up @@ -45,4 +45,4 @@ public function beforeInitProduct(\Magento\Catalog\Helper\Product $subject, $pro

return [$productId, $controller, $params];
}
}
}
3 changes: 2 additions & 1 deletion app/code/Firebear/ConfigurableProducts/etc/frontend/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* Copyright © 2015 Firebear Studio. All rights reserved.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<type name="Magento\Catalog\Helper\Product">
<plugin name="firebear_show_configurable_product" type="Firebear\ConfigurableProducts\Plugin\Helper\Catalog\Product" />
</type>
Expand Down
3 changes: 2 additions & 1 deletion app/code/Firebear/ConfigurableProducts/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright © 2015 Firebear Studio. All rights reserved.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Firebear_ConfigurableProducts" setup_version="1.0.0" />
</config>
7 changes: 7 additions & 0 deletions app/code/Firebear/ConfigurableProducts/registration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Firebear_ConfigurableProducts',
__DIR__
);