Skip to content

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

Open
seriewe wants to merge 3 commits into
shopware5:5.7from
ditegra-GmbH:bugfix_sAddressesWrongIfOrdersIdNotUniqueAmongShops
Open

implement fix for wrong sAddresses data issue. consider userId to get…#2702
seriewe wants to merge 3 commits into
shopware5:5.7from
ditegra-GmbH:bugfix_sAddressesWrongIfOrdersIdNotUniqueAmongShops

Conversation

@seriewe

@seriewe seriewe commented Jun 9, 2024

Copy link
Copy Markdown

… 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

CLAassistant commented Jun 9, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Jun 9, 2024

Copy link
Copy Markdown
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

@mitelg mitelg left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread engine/Shopware/Controllers/Frontend/Checkout.php Outdated
Comment thread engine/Shopware/Controllers/Frontend/Checkout.php Outdated
@mitelg

mitelg commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

hey @seriewe

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

@seriewe

seriewe commented Sep 6, 2024

Copy link
Copy Markdown
Author

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

@mitelg

mitelg commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

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