Skip to content

Commit

Permalink
magento#108: Clear Shopping Cart - Updated config scope to website, r…
Browse files Browse the repository at this point in the history
…emoved showInStore configurable level
  • Loading branch information
John Carlo Octabio committed Jul 20, 2020
1 parent 09d6b10 commit adfea2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Checkout/ViewModel/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function isClearShoppingCartEnabled()
{
return (bool) $this->_scopeConfig->getValue(
self::XPATH_CONFIG_ENABLE_CLEAR_SHOPPING_CART,
ScopeInterface::SCOPE_STORE
ScopeInterface::SCOPE_WEBSITE
);
}
}
2 changes: 1 addition & 1 deletion app/code/Magento/Checkout/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<label>Show Cross-sell Items in the Shopping Cart</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="enable_clear_shopping_cart" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<field id="enable_clear_shopping_cart" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" canRestore="1">
<label>Enable Clear Shopping Cart</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
Expand Down

0 comments on commit adfea2a

Please sign in to comment.