Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add 3 new methods for tracking cart total quantity into CartInterface

  • Loading branch information...
commit cc1b1b02894561a58ac6854a50e33f67403bb9db 1 parent b93326a
@mykehsd authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 Model/CartInterface.php
View
21 Model/CartInterface.php
@@ -43,6 +43,27 @@ public function setTotalItems($totalItems);
public function changeTotalItems($amount);
/**
+ * Returns total quantity of items in cart.
+ *
+ * @return integer
+ */
+ public function getTotalQuantity();
+
+ /**
+ * Sets total quantity of items in cart.
+ *
+ * @param integer $totalItems;
+ */
+ public function setTotalQuantity($totalQuantity);
+
+ /**
+ * Change total quantity number by given amount.
+ *
+ * @param integer $amount
+ */
+ public function changeTotalQuantity($amount);
+
+ /**
* Get total cart value.
*/
public function getTotal();
Please sign in to comment.
Something went wrong with that request. Please try again.