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

Revise with active Stock Availability not processable #2460

Closed
solverat opened this issue Dec 4, 2023 · 1 comment
Closed

Revise with active Stock Availability not processable #2460

solverat opened this issue Dec 4, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@solverat
Copy link
Contributor

solverat commented Dec 4, 2023

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

Steps to reproduce:

  • Product with tracked stock, with available items of 1
  • Add product to cart
  • Go to check out, choose a payment provider which allows you to cancel
  • Cancel payment to get redirected to revise action
  • Hit "Process payment"

=> Form Error AddToCartAvailability ("Not sufficient stock..:")

Not sure why / where this is happening, it worked in CS 2 though.

@solverat
Copy link
Contributor Author

solverat commented Dec 4, 2023

Got it:

CoreShop\Component\Core\Model\Order:
constraints:
- \CoreShop\Bundle\CoreBundle\Validator\Constraints\CartStockAvailability: { groups: ['coreshop'] }

In CS2, this constraint triggered only on CoreShop\Component\Core\Model\Cart object, which has been consolidated into the order object => which now also triggers within the revise process.

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

No branches or pull requests

2 participants