Skip to content

Commit

Permalink
magento#108: Clear Shopping Cart - Refactor to fix expected jsdoc-blo…
Browse files Browse the repository at this point in the history
…ck in shopping-cart.js and fix Grid.php PHPdoc long description
  • Loading branch information
John Carlo Octabio committed Jun 9, 2020
1 parent 7dad27c commit c1ba0e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Checkout/Block/Cart/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public function getItems()
}

/**
* Verify if display pager on shopping cart
* If cart block has custom_items and items qty in the shopping cart<limit from stores configuration
* Verify if display pager on shopping cart if cart block has custom_items and items qty in the shopping cart<limit
* from stores configuration
*
* @return bool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ define([
confirm({
content: $.mage.__('Are you sure you want to remove all items from your shopping cart?'),
actions: {
/**
* Confirmation modal handler to execute clear cart action
*/
confirm: function () {
self.clearCart();
}
Expand Down

0 comments on commit c1ba0e0

Please sign in to comment.