File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.4.2] - 2020-02-13
8
+ ### Added
9
+ - New method cartItemQuantitySet() to update quantity of a cart item directly.
10
+
7
11
## [ 1.4.1] - 2020-12-11
8
12
### Added
9
13
- Support for PHP 8
Original file line number Diff line number Diff line change @@ -199,6 +199,20 @@ public function decrementCartItem()
199
199
}
200
200
```
201
201
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
+
202
216
### Clear cart
203
217
```
204
218
/**
You can’t perform that action at this time.
0 commit comments