Replies: 1 comment
-
You can just simply update the quantity field and save the model. All models in Vanilo are Eloquent models. Eg.: $cartItem->quantity = 3;
$cartItem->save(); Example: https://github.com/vanilophp/demo/blob/master/app/Http/Controllers/CartController.php#L52 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I checked the code and Cart tests.
I don't find the process in the current state to update cart item quantity. Nighther in code , doc or test folder.
There are these methods : GetQuantity, AddItem.
Also i checked in Tests folder , it seems there are no test done on changing cart item Qty.
Did i missed something ?
Beta Was this translation helpful? Give feedback.
All reactions