Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add 3 new methods for tracking cart total quantity into CartInterface

  • Loading branch information...
commit cd20b07ec34a8bbdfac25e50d9ebaf255118d876 1 parent 43fcd1a
@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.