Skip to content

Commit fb83729

Browse files
authored
Backend: when editing a bundle product you now have a link to the "bundled" products edit page (#2701)
1 parent f7694d3 commit fb83729

File tree

1 file changed

+6
-2
lines changed
  • app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option

1 file changed

+6
-2
lines changed

app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option/selection.phtml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var bundleTemplateRow ='<td>' +
4848
' <input type="hidden" name="<?php echo $this->getFieldName() ?>[{{parentIndex}}][{{index}}][delete]" value="" class="delete">' +
4949
' {{name}}<br />' +
5050
' <div class="nobr">' +
51-
' <strong><?php echo $this->helper('sales')->__('SKU') ?>:</strong> {{sku}}' +
51+
' <strong><?php echo $this->helper('sales')->__('SKU') ?>:</strong> <a href="<?php echo $this->getUrl('*/catalog_product/edit', ['store' => $this->getRequest()->getParam('store')]) ?>id/{{product_id}}/">{{sku}}</a>' +
5252
' </div>' +
5353
'</td>' +
5454
<?php if ($this->getCanReadPrice() !== false) : ?>
@@ -122,10 +122,14 @@ Bundle.Selection.prototype = {
122122

123123
var option_type = $(bOption.idLabel + '_' + parentIndex + '_type');
124124

125-
if(!data){
125+
if (!data) {
126126
var data = {};
127127
}
128128

129+
if (data.selection_qty) {
130+
data.selection_qty = parseFloat(data.selection_qty);
131+
}
132+
129133
if (data.can_read_price != undefined && !data.can_read_price) {
130134
data.selection_price_value = '';
131135
} else {

0 commit comments

Comments
 (0)