Skip to content

Commit

Permalink
magento#108: Clear Shopping Cart - Refactor initial changes to remove…
Browse files Browse the repository at this point in the history
… diff in PR
  • Loading branch information
John Carlo Octabio committed Jun 24, 2020
1 parent ee29f5f commit 888a9f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/code/Magento/Checkout/Block/Cart/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ protected function _construct()

/**
* {@inheritdoc}
*
* @since 100.2.0
*/
protected function _prepareLayout()
Expand Down Expand Up @@ -148,7 +147,6 @@ public function getItemsForGrid()

/**
* {@inheritdoc}
*
* @since 100.2.0
*/
public function getItems()
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Checkout/ViewModel/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use Magento\Framework\View\Element\Context;
use Magento\Store\Model\ScopeInterface;

class Cart implements ArgumentInterface
{
Expand Down Expand Up @@ -37,7 +38,7 @@ public function isClearShoppingCartEnabled()
{
return (bool) $this->_scopeConfig->getValue(
self::XPATH_CONFIG_ENABLE_CLEAR_SHOPPING_CART,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
ScopeInterface::SCOPE_STORE
);
}
}

0 comments on commit 888a9f3

Please sign in to comment.