feat: finish tests & docs

This commit is contained in:
Joel Male
2025-02-25 16:54:03 +10:00
parent 7adf5ecd1f
commit 4cf078277d
5 changed files with 75 additions and 39 deletions
+10
View File
@@ -300,10 +300,20 @@ #### Check if cart is empty: **Cart::isEmpty()**
#### Clearing the Cart: **Cart::clear()**
This clears all items and conditions from the cart.
```php
Cart::clear();
```
#### Clearing the cart items only: **Cart::clearItems()**
This clears all items, but keeps the conditions (useful for when you want to keep the conditions but remove the items)
```php
Cart::clearItems();
```
### Conditions
Conditions are very useful for adding things like discounts, taxes, shipping, etc.