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

implement fix for wrong sAddresses data issue. consider userId to get… #2702

Open
wants to merge 3 commits into
base: 5.7
Choose a base branch
from

Conversation

seriewe
Copy link

@seriewe seriewe commented Jun 9, 2024

… unique order if there are multiple orders with same orderid

1. Why is this change necessary?

If multiple shops has not correctly setup the order nuber ranges and they overlap customer see billing data from other customer on /checkout/finish page.

2. What does this change do, exactly?

the change consider the userId and orderId to get the unique oder for the customer which does the checkout

3. Describe each step to reproduce the issue or behaviour.

If you have two stores with same odernumber ranges and for example Store A hast already the order 45500 and the second store now also has a new order with 45500, because of same order number ranges, the user from Store B will see the address data of user from Store A because the Method: getOrderAddress from Controller Shopware_Controllers_Frontend_Checkout just search for oder ID and does not consider Store oder User!

4. Please link to the relevant issues (if any).

5. Which documentation changes (if any) need to be made because of this PR?

6. Checklist

  • I have written tests and verified that they fail without my change
  • I have squashed any insignificant commits
  • This change has comments for package types, values, functions, and non-obvious lines of code
  • I have read the contribution requirements and fulfil them.

… unique order if there are multiple orders with same orderid
@CLAassistant
Copy link

CLAassistant commented Jun 9, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

github-actions bot commented Jun 9, 2024

Fails
🚫 The commit title `implement fix for wrong sAddresses data issue. consider userId to get unique order if there are multiple orders with same orderid` does not match our requirements. Please follow: www.conventionalcommits.org
🚫 The commit title `rename var to customerId use injected session object` does not match our requirements. Please follow: www.conventionalcommits.org
🚫 The commit title `Merge branch 'shopware5:5.7' into bugfix_sAddressesWrongIfOrdersIdNotUniqueAmongShops` does not match our requirements. Please follow: www.conventionalcommits.org
Warnings
⚠️ The Pull Request doesn't contain any changes to the Upgrade file

Copy link
Contributor

@mitelg mitelg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your contribution! some test would be nice

engine/Shopware/Controllers/Frontend/Checkout.php Outdated Show resolved Hide resolved
engine/Shopware/Controllers/Frontend/Checkout.php Outdated Show resolved Hide resolved
@mitelg
Copy link
Contributor

mitelg commented Jul 11, 2024

hey @seriewe

are you still on this one? would be nice to see some test validating your changes 🙂

@seriewe
Copy link
Author

seriewe commented Sep 6, 2024

@mitelg I'm sorry had still not time. Does it still make sense for me to submit this in the coming weeks?

@mitelg
Copy link
Contributor

mitelg commented Sep 27, 2024

no worries, we can leave it open for now. maybe someone else would like to jump in 😊 or when you have the time

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

Successfully merging this pull request may close these issues.

3 participants