Skip to content

Commit 4e3dcc6

Browse files
author
Oleg Zinoviev
committed
MAGETWO-32302: Create New Order
- Fixed test (custom options)
1 parent f76bfce commit 4e3dcc6

File tree

1 file changed

+14
-12
lines changed
  • app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/composite/fieldset

1 file changed

+14
-12
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/composite/fieldset/configurable.phtml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@
1313
<?php $_attributes = $block->decorateArray($block->getAllowAttributes()); ?>
1414
<?php $_skipSaleableCheck = $this->helper('Magento\Catalog\Helper\Product')->getSkipSaleableCheck(); ?>
1515
<?php if (($_product->isSaleable() || $_skipSaleableCheck) && count($_attributes)):?>
16-
<fieldset id="catalog_product_composite_configure_fields_configurable" class="fieldset admin__fieldset product-options">
16+
<fieldset id="catalog_product_composite_configure_fields_configurable" class="fieldset admin__fieldset">
1717
<legend class="legend admin__legend"><span><?php echo __('Associated Products') ?></span></legend>
18-
<div class="field admin__field _required required">
19-
<?php foreach ($_attributes as $_attribute): ?>
20-
<label class="label admin__field-label"><?php echo $_attribute->getLabel() ?></label>
21-
<div class="control admin__field-control <?php if ($_attribute->getDecoratedIsLast()):?> last<?php endif; ?>">
22-
<select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]"
23-
id="attribute<?php echo $_attribute->getAttributeId() ?>"
24-
class="admin__control-select required-entry super-attribute-select">
25-
<option><?php echo __('Choose an Option...') ?></option>
26-
</select>
27-
</div>
28-
<?php endforeach; ?>
18+
<div class="product-options">
19+
<div class="field admin__field _required required">
20+
<?php foreach ($_attributes as $_attribute): ?>
21+
<label class="label admin__field-label"><?php echo $_attribute->getLabel() ?></label>
22+
<div class="control admin__field-control <?php if ($_attribute->getDecoratedIsLast()):?> last<?php endif; ?>">
23+
<select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]"
24+
id="attribute<?php echo $_attribute->getAttributeId() ?>"
25+
class="admin__control-select required-entry super-attribute-select">
26+
<option><?php echo __('Choose an Option...') ?></option>
27+
</select>
28+
</div>
29+
<?php endforeach; ?>
30+
</div>
2931
</div>
3032
</fieldset>
3133
<script>

0 commit comments

Comments
 (0)