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

Fix assigning new created customer to the order #12

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

kis28viktor
Copy link
Contributor

@kis28viktor kis28viktor commented Mar 19, 2024

Fix assigning new created customer to the order

test FP: https://github.com/Vendic/koene/pull/192

Problem description:
current module is creating new customer account on sales_model_service_quote_submit_before event.
Also in same observer it is setting new customer id to quote, so that it be saved to order also.
But customer id setting to order happens before sales_model_service_quote_submit_before event dispatched. Because of that, order was not getting customer id.

Proposition:
I also noticed that it is setting "Not logged in" customer group in quote (with comment to make configuration for this)
I think it would be nice just to set default customer group in that place (from Stores -> Configuration -> Customers -> Customer Configuration -> Create New Account Options -> Default Group)
@Tjitse-E what do you think?

@Tjitse-E
Copy link
Member

@kis28viktor good idea!

@Tjitse-E Tjitse-E assigned kis28viktor and unassigned Tjitse-E Mar 21, 2024
@kis28viktor kis28viktor merged commit a0abb18 into develop Mar 27, 2024
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants