File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/edit/super Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 149
149
<div class="fields-group-2">
150
150
<div class="field field-pricing-value">
151
151
<div class="control">
152
- <input type="text" class="pricing-value validate-number"
152
+ <input type="text" class="pricing-value validate-number" <?php if (! $ block -> getCanEditPrice ()): ?> 'disabled="disabled"' <?php endif ; ?>
153
153
name="product[configurable_attributes_data][<%- data.attribute.id %>][values][<%- data.option.id %>][pricing_value]" />
154
154
</div>
155
155
</div>
156
156
<div class="field field-pricing-measure">
157
157
<div class="actions dropdown actions-select">
158
158
<input type="hidden" value="0" name="product[configurable_attributes_data][<%- data.attribute.id %>][values][<%- data.option.id %>][is_percent]"/>
159
- <button type="button" class="action toggle" data-toggle="dropdown" data-mage-init='{"dropdown":{}}'>
159
+ <button type="button" class="action toggle" data-toggle="dropdown" data-mage-init='{"dropdown":{}}' <?php if (! $ block -> getCanEditPrice ()): ?> 'disabled="disabled"' <?php endif ; ?> >
160
160
<span><?php echo $ block ->getBaseCurrency ()->getSymbol () ?> </span>
161
161
</button>
162
162
<ul class="dropdown" data-role="dropdown-menu" data-mage-init='{"menu":{}}'>
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ $id = $block->escapeHtml($attribute['attribute_id']);
118
118
<div class="fields-group-2">
119
119
<div class="field field-pricing-value">
120
120
<div class="control">
121
- <input type="text" class="pricing-value validate-number"
121
+ <input type="text" <?php if (! $ block -> getCanEditPrice ()): ?> disabled="disabled"; <?php endif ; ?> class="pricing-value validate-number"
122
122
name="<?php echo $ namePrefix ?> [<?php echo $ valueIndex ?> ][pricing_value]"
123
123
value="<?php echo $ block ->escapeHtml ($ pricingValue );
124
124
?> ">
@@ -128,7 +128,7 @@ $id = $block->escapeHtml($attribute['attribute_id']);
128
128
<div class="actions dropdown actions-select">
129
129
<input name="<?php echo $ namePrefix ?> [<?php echo $ valueIndex ?> ][is_percent]" type="hidden" value="<?php echo $ isPercent ? 1 : 0 ;
130
130
?> "/>
131
- <button type="button" class="action toggle" data-toggle="dropdown" data-mage-init='{"dropdown":{}}'>
131
+ <button type="button" class="action toggle" <?php if (! $ block -> getCanEditPrice ()): ?> disabled="disabled" <?php endif ; ?> data-toggle="dropdown" data-mage-init='{"dropdown":{}}'>
132
132
<span><?php echo $ isPercent ? __ ('% ' ) : $ block ->getBaseCurrency ()->getSymbol () ?> </span>
133
133
</button>
134
134
<ul class="dropdown" data-role="dropdown-menu" data-mage-init='{"menu":{}}'>
You can’t perform that action at this time.
0 commit comments