Skip to content

Commit adfea2a

Browse files
author
John Carlo Octabio
committed
#108: Clear Shopping Cart - Updated config scope to website, removed showInStore configurable level
1 parent 09d6b10 commit adfea2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Checkout/ViewModel/Cart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function isClearShoppingCartEnabled()
4343
{
4444
return (bool) $this->_scopeConfig->getValue(
4545
self::XPATH_CONFIG_ENABLE_CLEAR_SHOPPING_CART,
46-
ScopeInterface::SCOPE_STORE
46+
ScopeInterface::SCOPE_WEBSITE
4747
);
4848
}
4949
}

app/code/Magento/Checkout/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<label>Show Cross-sell Items in the Shopping Cart</label>
4949
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
5050
</field>
51-
<field id="enable_clear_shopping_cart" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
51+
<field id="enable_clear_shopping_cart" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" canRestore="1">
5252
<label>Enable Clear Shopping Cart</label>
5353
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
5454
</field>

0 commit comments

Comments
 (0)