magento / magento/data-migration-tool

Can't sell downloadable products after migration

Open
#710 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
339
Forks
195
PR merge metrics
No merged PRs in 30d

Description

### Preconditions

1. Migrate 1.9.4.2 to Magento 2.3.2

### Steps to reproduce

1. In Magento 2 create a new downloadable product with downloadable links, make sure it's available and in stock
2. Navigate to frontend and try to purchase the product

### Expected result

1. Product is in stock

### Actual result

1. Product is not in stock

### Additional notes
The default value for the eav attribute `links_exist` has changed to `null` see ` Magento\Downloadable\Setup\Patch\Data\UpdateLinksExistDefaultAttributeValue`. The migration tool does not perform this same transformation. I ran
`UPDATE eav_attribute set default_value=null where attribute_code='links_exist';` to fix it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Magento\Downloadable\Setup\Patch\Data\UpdateLinksExistDefaultAttributeValue and the migration handling for the eav_attribute table, focusing on the links_exist default_value. Reproduce the migration from Magento 1.9.4.2 to Magento 2.3.2 and verify that a migrated downloadable product with links is treated as in stock and can be purchased.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.