Skip to content

Commit adb9859

Browse files
committed
MAGETWO-70852: Import/Export with sample does not work correctly
- fix bundle required attributes
1 parent 0c313cb commit adb9859

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/BundleSampleData/Model/Product.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ protected function prepareProduct($product, $data)
7575
$product
7676
->setCanSaveConfigurableAttributes(true)
7777
->setCanSaveBundleSelections(true)
78-
->setPriceType(0);
78+
->setPriceType(0)
79+
->setShipmentType(0)
80+
->setSkuType(1)
81+
->setWeightType(1);
7982
$bundleOptionsData = $product->getBundleOptionsData();
8083
$options = [];
8184
foreach ($bundleOptionsData as $key => $optionData) {

0 commit comments

Comments
 (0)