-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Issue #350 fix #351
Issue #350 fix #351
Conversation
Merge with current version
@@ -19,3 +19,6 @@ bin/doctrine* | |||
bin/phpspec | |||
bin/webunit | |||
vendor/* | |||
|
|||
composer.phar | |||
nbproject/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be reverted and added to your global .gitignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Thnx 👍
This reverts commit 46532fd.
I'm actually not 100% sure what's going on here, but I also noticed that the order numbers currently aren't being generated. What I can't figure out - how does "sylius.order.pre_create" ever get triggered? Is that happening on the Doctrine/Persistence level? Also, just to confirm, are we generating order numbers only when orders are getting confirmed? That would seem to be the correct behavior, so we don't waste order numbers on temporary carts.. Thanks for helping me understand :) |
HI, you can call it with: i think that this will work also: I agree with your logic that we should generate number only on completing order |
Another idea for this is to create class inside SalesBundle that will have OrderEvents (Similar as FosUserEvents) and than use that event inside Checkout process What do you think about that? I think this is elegant solution and we can use SalesBundle as independent . |
Also as I see at the moment FINALIZE_* events doesn't do nothing. Maybe to implement same logic as for order.pre_complete inside finalize.... but that will be reinventing the wheel maybe :/ |
Closing as the issue was probably fixed by #404. |
^ confirmed. |
[Resource] RepositoryInterface ref link label
No description provided.