// Add multishop checkbox for id_category_default in admin products
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
<input type="hidden" name="submitted_tabs[]" value="Associations" />
|
||||
<div class="Associations">
|
||||
<h4>{l s='Associations'}</h4>
|
||||
|
||||
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Associations"}
|
||||
<div class="separation"></div>
|
||||
<div id="no_default_category" class="hint">
|
||||
{l s='Please select a default category.'}
|
||||
@@ -54,6 +56,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-left">
|
||||
{include file="controllers/products/multishop/checkbox.tpl" field="id_category_default" type="default"}
|
||||
<label for="id_category_default">{l s='Default category:'}</label>
|
||||
</td>
|
||||
<td class="col-right">
|
||||
|
||||
@@ -712,6 +712,9 @@ product_tabs['Associations'] = new function(){
|
||||
$('#divAccessories').delegate('.delAccessory', 'click', function(){
|
||||
self.delAccessory($(this).attr('name'));
|
||||
});
|
||||
|
||||
if (display_multishop_checkboxes)
|
||||
multishopCheckAllProductFieldsAssociations();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1535,6 +1538,11 @@ function multishopCheckAllProductFieldsSeo(checked)
|
||||
});
|
||||
}
|
||||
|
||||
function multishopCheckAllProductFieldsAssociations(checked)
|
||||
{
|
||||
multishopCheckProductField($('input[name=\'multishop_check[id_category_default]\']').attr('checked'), 'id_category_default');
|
||||
}
|
||||
|
||||
var tabs_manager = new ProductTabsManager();
|
||||
tabs_manager.setTabs(product_tabs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user