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

Refactor the Configurable Product form #15

Closed
naydav opened this issue May 19, 2017 · 0 comments
Closed

Refactor the Configurable Product form #15

naydav opened this issue May 19, 2017 · 0 comments

Comments

@naydav
Copy link

naydav commented May 19, 2017

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'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant