File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
app/code/Magento/Downloadable/Observer Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ class IsAllowedGuestCheckoutObserver implements ObserverInterface
15
15
*/
16
16
const XML_PATH_DISABLE_GUEST_CHECKOUT = 'catalog/downloadable/disable_guest_checkout ' ;
17
17
18
+ /**
19
+ * Xml path to get downloadable Shareable setting
20
+ */
21
+ const XML_PATH_DOWNLOADABLE_SHAREABLE = 'catalog/downloadable/shareable ' ;
22
+
18
23
/**
19
24
* Core store config
20
25
*
@@ -46,6 +51,10 @@ public function execute(\Magento\Framework\Event\Observer $observer)
46
51
self ::XML_PATH_DISABLE_GUEST_CHECKOUT ,
47
52
ScopeInterface::SCOPE_STORE ,
48
53
$ store
54
+ ) && $ this ->_scopeConfig ->isSetFlag (
55
+ self ::XML_PATH_DOWNLOADABLE_SHAREABLE ,
56
+ ScopeInterface::SCOPE_STORE ,
57
+ $ store
49
58
)) {
50
59
return $ this ;
51
60
}
You can’t perform that action at this time.
0 commit comments