We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I prevent the items in the cart from changing position when I change the quantity of a product?
I think they are ordered according to the update and put them below, but I don't know where I can modify it.
The text was updated successfully, but these errors were encountered:
i use orderBy id to prevent changing position
Sorry, something went wrong.
How to make this one orderBy
$cartItem = \Cart::session($this->userId)->getContent();
I have a solution to do that, you can also try this way.
$cartItem = \Cart::session($userId)->getContent()->sortKeysDesc();
Hey @alquialrium I have fixed this in our fork: wearepixel/laravel-cart#1
No branches or pull requests
How can I prevent the items in the cart from changing position when I change the quantity of a product?
I think they are ordered according to the update and put them below, but I don't know where I can modify it.
The text was updated successfully, but these errors were encountered: