Skip to content

Commit 5e19374

Browse files
authored
Merge pull request #353 from abdelazizib/abdelazizibpatch-1
Updated Readme File
2 parents 7ba6b8f + c9ec8d6 commit 5e19374

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff 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+
383399
Get cart total: **Cart::getTotal()**
384400

385401
```php

0 commit comments

Comments
 (0)