am i going crazy and can't see it or has it gone?
my opencart carpet cleaning woking guildford and Office Cleaning Services in Guildford
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."
1. Adding sql table
Code: Select all
ALTER TABLE `manufacturer` ADD `description` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
after line 36:
Code: Select all
$this->data['heading_title'] = $manufacturer_info['name'];
Code: Select all
$this->data['m_description'] = $manufacturer_info['description'];
after line 10:
Code: Select all
<div class="middle">
Code: Select all
<div class="div1">
<?php echo $m_description; ?>
</div>
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 . "'");
}
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 . "'");
}
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'] = '';
}
Code: Select all
$this->data['entry_discription'] = $this->language->get('entry_discription');
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>
Code: Select all
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
CKEDITOR.replace('description');
</script>
7.in /admin/language/english/catalog/manufacturer.php add one line under line 18(19?):
Code: Select all
$_['entry_discription'] = 'discription';
hope its help
Edit:
I Add admin-language solution, and some one code in controller/catalog/man... .php
I do not care about my bad English.
very nice, thank you very much..
I would like to ask, what should I do, when I want to add a short description to the products.. BUT I dont mean the product detail, but product list... latest products, categories, search , and so on... I guess, i have to add a table to sql, probably like this
Code: Select all
ALTER TABLE `product` ADD `perex` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
Does anybody know..? Thank you!!
______________________________________________________
http://www.vojtechzahorsky.com
how small description? atm i've been using meta description and it works fairly well for now.vojtech25 wrote:Mhm,
very nice, thank you very much..
I would like to ask, what should I do, when I want to add a short description to the products.. BUT I dont mean the product detail, but product list... latest products, categories, search , and so on... I guess, i have to add a table to sql, probably like thisbut I dont know what to change in admin, controller, and so on...Code: Select all
ALTER TABLE `product` ADD `perex` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
Does anybody know..? Thank you!!
not very good for other languages surely? i'm going to give the suggestion above yours a try as i think thats better for more languages as it's the same as how the category one is doneHollow wrote:Here is a solution how i done it.
And thats it (dont forget exit your language )
hope its help
my opencart carpet cleaning woking guildford and Office Cleaning Services in Guildford
no no... I mean how to add a short description to the product list... for example here http://www.vojtechzahorsky.com/Open after Cena (bez DPH)... i would like to put for example tree lines of description, a few parametrs...how small description? atm i've been using meta description and it works fairly well for now.
______________________________________________________
http://www.vojtechzahorsky.com
Did you mean small description of product in product list, for example like this one - http://ishop.nay.sk/sk/catalog/products-list?node=372 ?vojtech25 wrote:no no... I mean how to add a short description to the product list... for example here http://www.vojtechzahorsky.com/Open after Cena (bez DPH)... i would like to put for example tree lines of description, a few parametrs...how small description? atm i've been using meta description and it works fairly well for now.
Short description of product's parameters in the list of products...More detailed description is then in product detail...
I have the same problem. Still searching for the solution, but unsuccessfully. This is a very common feature of most of eshops, for me it is strange that opencart doesn't provide. If anybody could help and share his experience or advice, please, help...
Thank you a lot.
Was this for 1.4 or 1.3.x?Hollow wrote:Here is a solution how i done it.
I gave it a shot on 1.3.4 and ran into 2 snags.
When adding or editing the manufacturer in the admin I'm seeing this error.
Code: Select all
Notice: Undefined variable: entry_description in C:\xampp\htdocs\oc134\admin\view\template\catalog\manufacturer_form.tpl on line 34
Users browsing this forum: No registered users and 198 guests