Skip to content
New issue

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

Adding item to cart should not create a new item, but increase quantity #15

Closed
UnrulyNatives opened this issue Jul 2, 2024 · 2 comments

Comments

@UnrulyNatives
Copy link

UnrulyNatives commented Jul 2, 2024

In the code presented in Store Items For a Cart the logic simply adds a DB record in the table.
This works well when adding a first itemable product.

Should be: If a buyer press the same button again, the logic should increase quantity.
Now: A new entry in the CartItem model is created.

Also, an inctrease quoantity feature should be implemented.

@milwad-dev
Copy link
Member

Yes, we add a new method in the Laravel Cart update.

@milwad-dev
Copy link
Member

#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants