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

issue #18349 Fixed for 2.3: Incorrect quote_item_id saved on order items during multiple address checkout #19192

Conversation

mahesh-rajawat
Copy link
Member

Incorrect quote_item_id saved on order items during multiple address checkout issue fixed.

Description (*)

When order placed using Multiple address checkout then there were incorrect quote_item_id in
sales_order_item table.

Fixed Issues (if relevant)

  1. Incorrect quote_item_id saved on order items during multiple address checkout #18349

Manual testing scenarios (*)

  1. Placed and Order with Multi address checkout, now quote_item_id is correct.
  2. Placed an order with Onestep checkout quote_item_id is correct as well.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @maheshWebkul721. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@sivaschenko sivaschenko self-assigned this Nov 19, 2018
@sivaschenko
Copy link
Member

Hi @maheshWebkul721 Thank you for the contribution. I think it might be more consistent to introduce this change in declarative way to

<field name="id">
<aspect name="to_order_item" targetField="quote_item_id" />
</field>

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thank you for collaboration! Please see the suggestion for implementation improvement

app/code/Magento/Quote/etc/fieldset.xml Outdated Show resolved Hide resolved
@mahesh-rajawat
Copy link
Member Author

mahesh-rajawat commented Nov 20, 2018

@sivaschenko suggestion implemented, i have found another bug with this procedure, Store id is also
not saved it always saved NULL (Screenshot: https://prnt.sc/lkrfbk ) with Multishipping Checkout. I am working on that point also.
I think, it will be good to Create new PR for that.

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thank you for the updates. Please fix the final required cosmetic change and it would be good to squash the commits into one for the delivery

app/code/Magento/Quote/Model/Quote/Item/ToOrderItem.php Outdated Show resolved Hide resolved
@sivaschenko
Copy link
Member

@maheshWebkul721 thanks! Nice catch with the store id!

@mahesh-rajawat
Copy link
Member Author

Hi @sivaschenko , updated the declaration syntax, please review now. Thanks for all your help.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Nov 21, 2018
@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, thank you for the review.
ENGCOM-3503 has been created to process this Pull Request

@mahesh-rajawat
Copy link
Member Author

Hi @sivaschenko, i have fixed the store_id issue as well in PR #19321 .

@ghost
Copy link

ghost commented Jan 27, 2019

Hi @maheshWebkul721, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

magento-engcom-team pushed a commit that referenced this pull request Jan 27, 2019
…d on order items during multiple address checkout #19192
@magento-engcom-team
Copy link
Contributor

Hi @maheshWebkul721. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
Please check the release notes for final confirmation.

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.

4 participants