Skip to content

Commit

Permalink
Fix upsell (#33)
Browse files Browse the repository at this point in the history
Upsell plugin is not triggered in magento community version
  • Loading branch information
ah-net authored Jan 25, 2023
1 parent 189de79 commit f666925
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ Bug fix for installer when using an db prefix
## 5.2.0
- Feature shoppingcart recommendations from tweakwise
- Bug fix ajax query url

## 5.2.1
- Bug fix upselll plugin not triggered
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<section id="tweakwise">
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<comment>Tweakwise version v5.2.0</comment>
<comment>Tweakwise version v5.2.1</comment>
<field id="authentication_key" translate="label,comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Authentication key</label>
<comment>Provided by Tweakwise (8 alphanumeric characters)</comment>
Expand Down
9 changes: 6 additions & 3 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<type name="Magento\Checkout\Block\Cart\Crosssell">
<plugin name="tweakwise-magento2tweakwise" type="Tweakwise\Magento2Tweakwise\Block\Cart\Crosssell\Plugin" />
</type>
<type name="Magento\Catalog\Block\Product\ProductList\Related">
<plugin name="tweakwise-magento2tweakwise" type="Tweakwise\Magento2Tweakwise\Block\Catalog\Product\ProductList\Related\Plugin" sortOrder="0" />
</type>
<type name="Magento\Catalog\Block\Product\ProductList\Upsell">
<plugin name="tweakwise-magento2tweakwise" type="Tweakwise\Magento2Tweakwise\Block\Catalog\Product\ProductList\Upsell\Plugin" sortOrder="0" />
</type>
<type name="Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\FilterList\Plugin">
<arguments>
<argument name="tweakwiseFilterList" xsi:type="object">Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\FilterList\Tweakwise\Proxy</argument>
Expand Down Expand Up @@ -60,9 +66,6 @@
<plugin name="tweakwise-magento2tweakwise" type="Tweakwise\Magento2Tweakwise\Block\Checkout\Cart\Crosssell\Plugin" sortOrder="0" />
</type>
<!-- End of Commerce only-->
<type name="Magento\Catalog\Block\Product\ProductList\Related">
<plugin name="tweakwise-magento2tweakwise" type="Tweakwise\Magento2Tweakwise\Block\Catalog\Product\ProductList\Related\Plugin" sortOrder="0" />
</type>
<type name="Magento\Swatches\Helper\Data">
<plugin name="tweakwise-magento2tweakwise" type="Tweakwise\Magento2Tweakwise\Model\Swatches\Plugin" sortOrder="0" />
</type>
Expand Down

0 comments on commit f666925

Please sign in to comment.