File tree 1 file changed +16
-0
lines changed
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
130
130
\Cart::condition($condition1);
131
131
\Cart::getTotal();
132
132
\Cart::getSubTotal();
133
+ \Cart::getSubTotalWithoutConditions();
133
134
\Cart::addItemCondition($productID, $coupon101);
134
135
// and so on..
135
136
```
@@ -380,6 +381,21 @@ $subTotal = Cart::getSubTotal();
380
381
$subTotal = Cart::session($userId)->getSubTotal();
381
382
```
382
383
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
+
383
399
Get cart total: ** Cart::getTotal()**
384
400
385
401
``` php
You can’t perform that action at this time.
0 commit comments