Skip to content

Commit 24fdc81

Browse files
authored
text: update readme & changelog (#31)
* text: update readme & changelog * update: text * Revert "update: text" This reverts commit c5fd9c9. * text: update readme & changelog * update: changelog text
1 parent d2e4641 commit 24fdc81

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.4.2] - 2020-02-13
8+
### Added
9+
- New method cartItemQuantitySet() to update quantity of a cart item directly.
10+
711
## [1.4.1] - 2020-12-11
812
### Added
913
- Support for PHP 8

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,20 @@ public function decrementCartItem()
199199
}
200200
```
201201

202+
### Update user input quantity of a cart item
203+
```
204+
/**
205+
* Update user input quantity.
206+
*
207+
* @return json
208+
*/
209+
public function cartItemQuantitySet()
210+
{
211+
return cart()->setQuantityAt(request('cartItemIndex'), request('cartQuantity'));
212+
}
213+
214+
```
215+
202216
### Clear cart
203217
```
204218
/**

0 commit comments

Comments
 (0)