Skip to content

Commit c3e1ce0

Browse files
author
rani-webkul
committed
fixed disabled guest checkout issue in case of downloadable product #23971
1 parent a1dd986 commit c3e1ce0

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

app/code/Magento/Downloadable/Observer/IsAllowedGuestCheckoutObserver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Magento\Framework\Event\ObserverInterface;
99
use Magento\Store\Model\ScopeInterface;
1010

11+
/**
12+
* Check is allowed guest checkout for downloadable items.
13+
*/
1114
class IsAllowedGuestCheckoutObserver implements ObserverInterface
1215
{
1316
/**

app/code/Magento/Downloadable/Test/Mftf/Data/CatalogConfigData.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@
1818
<data key="scope_id">0</data>
1919
<data key="value">1</data>
2020
</entity>
21+
<entity name="EnableShareableDownloadableItems">
22+
<data key="path">catalog/downloadable/shareable</data>
23+
<data key="scope_id">0</data>
24+
<data key="value">1</data>
25+
</entity>
2126
</entities>

app/code/Magento/Downloadable/Test/Mftf/Test/LinkDownloadableProductFromGuestToCustomerTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</annotations>
2020
<before>
2121
<magentoCLI command="config:set {{EnableGuestCheckoutWithDownloadableItems.path}} {{EnableGuestCheckoutWithDownloadableItems.value}}" stepKey="enableGuestCheckoutWithDownloadableItems" />
22+
<magentoCLI command="config:set {{EnableShareableDownloadableItems.path}} {{EnableShareableDownloadableItems.value}}" stepKey="enableShareableDownloadableItems" />
2223
<createData entity="_defaultCategory" stepKey="createCategory"/>
2324
<createData entity="DownloadableProductWithOneLink" stepKey="createProduct">
2425
<requiredEntity createDataKey="createCategory"/>

0 commit comments

Comments
 (0)