Skip to content

Refactor the Configurable Product form #15

@naydav

Description

@naydav

Full context in documentation

[HLD] Inconsistent saving of Stock Data

Description

For this refactoring, you will need to:

  • update the Configurations section in configurable product form (creating and updating)
  • remove logic from \Magento\ConfigurableProduct\Model\Product\VariationHandler
if (!isset($postData['stock_data']['is_in_stock'])) {
    $stockStatus = $parentProduct->getQuantityAndStockStatus();
    $postData['stock_data']['is_in_stock'] = $stockStatus['is_in_stock'];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions