Here is a solution how i done it.
1. Adding sql table
Code: Select all
ALTER TABLE `manufacturer` ADD `description` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
2. edit catalog/controller/product/manufacturer.php
after line 36:
Code: Select all
$this->data['heading_title'] = $manufacturer_info['name'];
add something like this:
Code: Select all
$this->data['m_description'] = $manufacturer_info['description'];
3. edit TPL to show discription. Go to catalog/view/theme/(your theme)/template/product/manufacturer.tpl
after line 10:
add this:
Code: Select all
<div class="div1">
<?php echo $m_description; ?>
</div>
And thats it. It will show above a sort order (if there is something in discription )
Oh. And we have to add option to dashboard as well.
(and is a little more troblesome)
4. go to admin/model/catalog/manufacturer.php
after line 8-10:
Code: Select all
if (isset($data['image'])) {
$this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET image = '" . $this->db->escape($data['image']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
}
add this code :
Code: Select all
if (isset($data['discription'])) {
$this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET discription = '" . $this->db->escape($data['discription']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
}
and that same code after line 24-26.(look the same way like above one)
5. edit admin/controller/catalog/manufacturer.php
after line 345, add this one
Code: Select all
if (isset($this->request->post['description'])) {
$this->data['description'] = $this->request->post['description'];
} elseif (isset($manufacturer_info)) {
$this->data['description'] = $manufacturer_info['description'];
} else {
$this->data['description'] = '';
}
and in line 275:
Code: Select all
$this->data['entry_discription'] = $this->language->get('entry_discription');
6.edit admin/view/template/catalog/manufacturer_form.tpl
after line 30, press enter and add this one:
Code: Select all
<tr>
<td><?php echo $entry_discription; ?></td>
<td><textarea name="description" id="description"><?php echo $description; ?></textarea></td>
</tr>
and under close box div (line 42) add that code :
Code: Select all
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
CKEDITOR.replace('description');
</script>
And now you got CKeditor on your discription text area.
7.in /admin/language/english/catalog/manufacturer.php add one line under line 18(19?):
Code: Select all
$_['entry_discription'] = 'discription';
And thats it.
hope its help
Edit:
I Add admin-language solution, and some one code in controller/catalog/man... .php