Skip to content

Please reopen this - looks like in vendor/magento/module-downloadable/Model/Product/TypeTransitionManager/Plugin/Downloadable.php:66 the code is expecting some data by the key 'is_delete' on the downloadable data / downloadable product link to be able to change from a downloadable product to virtual, however there is no way to make that data be there. #38432

Open
@ksenia-zlotin

Description

@ksenia-zlotin

Preconditions (*)

  1. Downloadable Product 1
    qty: 100500
    status: enabled, IN_STOCK
    weight: This item has no weight
    links: no links, just samples
    samples: 1 sample file

Steps to reproduce (*)

  1. Log in as Admin
  2. Open Downloadable Product 1
  3. Uncheck "Is this downloadable Product?"
  4. Save the product

Expected result (*)

  1. Save is effective.
  2. I can buy a virtual product with that SKU
  3. References to samples are kept in the database but the type_id and/or switcher prevents using this information almost like the weight is kept in the Virtual type of product. this gives an ability to switch back from virtual to downloadable smoothly without losing data
  4. Alternative: if the first 2 options cannot be implemented, then Merchant receives alert or validation with instruction to remove links and samples first and only then Magento application allows to uncheck "Is this downloadable Product?"
    Example:
    image

Actual result (*)

  1. Save is not effective.
  2. When I try to add product through API the product is out of stock behaves like a product that is out of stock (missing links) so it is still downloadable.
  3. No alert. No validation. The checkbox "Is this downloadable Product?" is checked again, however, it was unchecked before save.
    Peek 2020-08-10 19-16

Metadata

Metadata

Assignees

Labels

Area: CatalogComponent: DownloadableIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions