jefferymoore83 wrote:Firefox Mac 3.5.10. This doesn't seem like a browser related issue but of course I could be wrong.
Hi Jeffery. I agree that it's likely not a browser issue, but it's possible. OK are you using apache as your web server?
The reason I ask is some servers parse [] differently. There is an easy fix for this. You just need to edit the file
Code: Select all
/admin/view/template/catalog/manufacturer_form.tpl
Find this
Code: Select all
<?php foreach ($stores as $store) { ?>
<?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
<div class="<?php echo $class; ?>">
<?php if (in_array($store['store_id'], $manufacturer_store)) { ?>
<input type="checkbox" name="manufacturer_store[]" value="<?php echo $store['store_id']; ?>" checked="checked" />
<?php echo $store['name']; ?>
<?php } else { ?>
<input type="checkbox" name="manufacturer_store[]" value="<?php echo $store['store_id']; ?>" />
<?php echo $store['name']; ?>
<?php } ?>
</div>
<?php } ?>
and change it to
Code: Select all
<?php foreach ($stores as $store) { ?>
<?php $class = ($class == 'even' ? 'odd' : 'even'); ?>
<div class="<?php echo $class; ?>">
<?php if (in_array($store['store_id'], $manufacturer_store)) { ?>
<input type="checkbox" name="manufacturer_store[<?php echo $store['store_id']; ?>]" value="<?php echo $store['store_id']; ?>" checked="checked" />
<?php echo $store['name']; ?>
<?php } else { ?>
<input type="checkbox" name="manufacturer_store[<?php echo $store['store_id']; ?>]" value="<?php echo $store['store_id']; ?>" />
<?php echo $store['name']; ?>
<?php } ?>
</div>
<?php } ?>
Also find this code a little above the last code
Code: Select all
<?php if (in_array(0, $manufacturer_store)) { ?>
<input type="checkbox" name="manufacturer_store[]" value="0" checked="checked" />
<?php echo $text_default; ?>
<?php } else { ?>
<input type="checkbox" name="manufacturer_store[]" value="0" />
<?php echo $text_default; ?>
<?php } ?>
and change it to
Code: Select all
<?php if (in_array(0, $manufacturer_store)) { ?>
<input type="checkbox" name="manufacturer_store[0]" value="0" checked="checked" />
<?php echo $text_default; ?>
<?php } else { ?>
<input type="checkbox" name="manufacturer_store[0]" value="0" />
<?php echo $text_default; ?>
<?php } ?>
That will give each manufacturer_store a unique key (the store id)