Skip to content

Conversation

@RomaKis
Copy link
Contributor

@RomaKis RomaKis commented Mar 13, 2018

$meta[ConfigurablePanel::GROUP_CONFIGURABLE][$children]
[ConfigurablePanel::CONFIGURABLE_MATRIX][$children]
[static::RECORD][$children][static::QUANTITY_CONTAINER] = $this->getQuantityContainerConfig();
if ($this->allowedProductTypes->isAllowedProductType($this->locator->getProduct())) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to use this code for products different from configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because simple, virtual and downloadable product can be converted to configurable.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving InventoryConfigurablePanel we can remove this double check

RomaKis added 2 commits March 14, 2018 12:10
# Conflicts:
#	app/code/Magento/InventoryConfigurableProduct/etc/di.xml
/**
* Data provider for Configurable panel.
*/
class InventoryConfigurablePanel extends AbstractModifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need to move this to modifier <type name="Magento\ConfigurableProduct\Ui\DataProvider\Product\Form\Modifier\Composite">
And remove AllowedProductTypes check

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naydav done

</argument>
</arguments>
</virtualType>
<type name="Magento\InventoryConfigurableProduct\Ui\DataProvider\Product\Form\Modifier\InventoryConfigurablePanel">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After moving InventoryConfigurablePanel we can remove this double check

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

Successfully merging this pull request may close these issues.

4 participants