Skip to content

Commit fe02088

Browse files
committed
Fix admin quote address being lost when removing all items, causing broken quote process until address is updated
1 parent 32e14db commit fe02088

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
@@ -95,4 +95,7 @@
9595
</argument>
9696
</arguments>
9797
</type>
98+
<type name="Magento\Quote\Model\Quote">
99+
<plugin name="clear_addresses_after_product_delete" type="Magento\Checkout\Plugin\Model\Quote\ResetQuoteAddresses"/>
100+
</type>
98101
</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
@@ -21,6 +21,7 @@ class ResetQuoteAddressesTest extends \PHPUnit\Framework\TestCase
2121
{
2222
/**
2323
* @magentoDataFixture Magento/Checkout/_files/quote_with_virtual_product_and_address.php
24+
* @magentoAppArea frontend
2425
*
2526
* @return void
2627
*/

0 commit comments

Comments
 (0)