File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ $userId // the current login user id
130130\Cart::condition($condition1);
131131\Cart::getTotal();
132132\Cart::getSubTotal();
133+ \Cart::getSubTotalWithoutConditions();
133134\Cart::addItemCondition($productID, $coupon101);
134135// and so on..
135136```
@@ -380,6 +381,21 @@ $subTotal = Cart::getSubTotal();
380381$subTotal = Cart::session($userId)->getSubTotal();
381382```
382383
384+ Get cart subtotal with out conditions: ** Cart::getSubTotalWithoutConditions()**
385+
386+ ``` php
387+ /**
388+ * get cart sub total with out conditions
389+ *
390+ * @param bool $formatted
391+ * @return float
392+ */
393+ $subTotalWithoutConditions = Cart::getSubTotalWithoutConditions();
394+
395+ // for a specific user
396+ $subTotalWithoutConditions = Cart::session($userId)->getSubTotalWithoutConditions();
397+ ```
398+
383399Get cart total: ** Cart::getTotal()**
384400
385401``` php
You can’t perform that action at this time.
0 commit comments