Permalink
Browse files

Add 3 new methods for tracking cart total quantity into CartInterface

  • Loading branch information...
1 parent b93326a commit cc1b1b02894561a58ac6854a50e33f67403bb9db @mykehsd committed Mar 27, 2013
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();

0 comments on commit cc1b1b0

Please sign in to comment.