Skip to content

Commit 01eb7e6

Browse files
committed
Fix clearing admin quote address when removing all items
1 parent 7b1cd79 commit 01eb7e6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/code/Magento/Checkout/etc/di.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,4 @@
4949
</argument>
5050
</arguments>
5151
</type>
52-
<type name="Magento\Quote\Model\Quote">
53-
<plugin name="clear_addresses_after_product_delete" type="Magento\Checkout\Plugin\Model\Quote\ResetQuoteAddresses"/>
54-
</type>
5552
</config>

app/code/Magento/Checkout/etc/frontend/di.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,7 @@
9696
</argument>
9797
</arguments>
9898
</type>
99+
<type name="Magento\Quote\Model\Quote">
100+
<plugin name="clear_addresses_after_product_delete" type="Magento\Checkout\Plugin\Model\Quote\ResetQuoteAddresses"/>
101+
</type>
99102
</config>

dev/tests/integration/testsuite/Magento/Checkout/Plugin/Model/Quote/ResetQuoteAddressesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ResetQuoteAddressesTest extends \PHPUnit\Framework\TestCase
2222
/**
2323
* @magentoDataFixture Magento/Checkout/_files/quote_with_virtual_product_and_address.php
2424
*
25+
* @magentoAppArea frontend
2526
* @return void
2627
*/
2728
public function testAfterRemoveItem(): void

0 commit comments

Comments
 (0)