Skip to content

Conversation

@eduard13
Copy link
Contributor

Original Pull Request

#22073

Description (*)

Fixes the issue raised in #21753 by setting the initial downloadable item status to Available if \Magento\Downloadable\Model\Link\Purchased\Item::XML_PATH_ORDER_ITEM_STATUS is set to 'Pending.'

Fixed Issues (if relevant)

  1. Order Item Status to Enable Downloads is set to "Pending," but no download links are presented in "My Downloads" when logged in (fix provided) #21753

Manual testing scenarios (*)

  1. Login to the admin and set Stores -> Configuration -> Catalog -> Downloadable Product Options -> Order Item Status to Enable Downloads to "Pending"
  2. Create a downloadable product in the admin
  3. Create a user account on the frontend and login
  4. Purchase a downloadable product. The product should be placed in the "available" state after successful completion of payment.
  5. Login to the admin and set Stores -> Configuration -> Catalog -> Downloadable Product Options -> Order Item Status to Enable Downloads to "Invoiced"
  6. Purchase the product again and note the second ordered item is in the "pending" status.

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)

@m2-assistant
Copy link

m2-assistant bot commented Apr 16, 2019

Hi @eduard13. 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.2-develop instance - deploy vanilla Magento instance

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

@magento-engcom-team magento-engcom-team added Component: Downloadable Release Line: 2.2 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner labels Apr 16, 2019
@eduard13 eduard13 changed the title [Backport] Bug fix for #21753 (2.3-develop) [Backport][Downloadable] Bug fix for #21753 Apr 16, 2019
@eduard13 eduard13 requested a review from rogyar April 16, 2019 17:45
@orlangur orlangur self-assigned this Apr 16, 2019
@eduard13
Copy link
Contributor Author

eduard13 commented Apr 17, 2019

Hi @orlangur, could you please clarify why you put it on Hold?
Thank you.

@orlangur
Copy link
Contributor

@eduard13 just to wait if @crankycyclops wants to perform a backport by himself.

@crankycyclops
Copy link
Contributor

@eduard13 just to wait if @crankycyclops wants to perform a backport by himself.

I already opened a pull request for this at the same time as the one for 2.3. See: #22072

@orlangur
Copy link
Contributor

@crankycyclops wow, thanks for pointing out 👍

@orlangur orlangur closed this Apr 17, 2019
@m2-assistant
Copy link

m2-assistant bot commented Apr 17, 2019

Hi @eduard13, 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.

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

Labels

Component: Downloadable Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: on hold Release Line: 2.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants