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

When deleting a product in cart error #732

Closed
freshface opened this issue Oct 7, 2022 · 2 comments · Fixed by #734
Closed

When deleting a product in cart error #732

freshface opened this issue Oct 7, 2022 · 2 comments · Fixed by #734
Labels

Comments

@freshface
Copy link

Bug Description

Flare: https://flareapp.io/share/4m4LxWZm

Steps to reproduce

  1. Add a product
  2. Add it to cart
  3. Delete product in CP

Environment

Environment
Application Name: Statamic Peak
Laravel Version: 9.34.0
PHP Version: 8.1.5
Composer Version: 2.3.5
Environment: local
Debug Mode: ENABLED
URL: mysite.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Simple Commerce
Gateways: Dummy
Repository: Customer: DoubleThreeDigital\SimpleCommerce\Customers\EntryCustomerRepository
Repository: Order: DoubleThreeDigital\SimpleCommerce\Orders\EntryOrderRepository
Repository: Product: DoubleThreeDigital\SimpleCommerce\Products\EntryProductRepository
Shipping Methods: Standard Post
Tax Engine: DoubleThreeDigital\SimpleCommerce\Tax\BasicTaxEngine

Statamic
Addons: 1
Antlers: runtime
Version: 3.3.43 PRO

Statamic Addons
doublethreedigital/simple-commerce: 4.0.3

@freshface freshface added the bug label Oct 7, 2022
@freshface freshface changed the title When deleting a product if if it in cart it throws error When deleting a product in cart error Oct 7, 2022
@duncanmcclean
Copy link
Owner

I'll take a look at this tomorrow, we may be able to handle deleted products better (like removing from the cart, instead of throwing an error).

In the meantime, you can clear your cookies for the site, then you'll get assigned a new cart.

@github-actions
Copy link

github-actions bot commented Oct 8, 2022

Released as part of v4.1.0.

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

Successfully merging a pull request may close this issue.

2 participants