andycatax Posted September 4, 2013 Share Posted September 4, 2013 (edited) I am trying to increase my content on category pages as we only have a small area at the top of our pages for the category description for around 70 words and would like to add a second description to the bottom of the pages which we can add 200 - 400 words. Any ideas how i could do this? Thanks Andy Edited September 7, 2013 by andycatax (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted September 5, 2013 Share Posted September 5, 2013 For this you can maybe add a new field to the table ps_category_lang, and modify a few files: (in example below: Code from PS1.5.5.0) Go to your cPanel, go to phpMyAdmin and Run SQL (to do this, go to any table, and click SQL tab):ALTER TABLE `ps_category_lang` ADD `long_description` text AFTER `description`;and press GO. Edit file: classes/Category.php: (Backup first...) at the top, just under: /** @var string Description */ public $description;Add: /** @var string long_description */ public $long_description;in public static $definition = array( , just under: 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'), add: 'long_description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'),edit file themes/<your theme folder>/category.tpl: (Backup first...)just under: (almost at end of file) (add red text) <div class="content_sortPagiBar"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl" paginationId='bottom'} {include file="./product-compare.tpl" paginationId='bottom'} {include file="./nbr-product-page.tpl" paginationId='bottom'} </div> {include file="./pagination.tpl" paginationId='bottom'} </div> {/if} {if $category->long_description} <div class="cat_desc"> {if strlen($category->long_description) > 500} <p id="category_long_description_short">{$category->long_description|truncate:500}</p> <p id="category_long_description_full" style="display:none">{$category->long_description}</p> <a href="#" onclick="$('#category_long_description_short').hide(); $('#category_long_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a> {else} <p>{$category->long_description}</p> {/if} </div> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} -- END OF FILE -- Edit file: controllers/admin/AdminCategoriesController.php (Backup first...)just under: array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), add: array( 'type' => 'textarea', 'label' => $this->l('Long description:'), 'name' => 'long_description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), That should do the trick. pascal !!!! N.B. Be careful when updating PrestaShop, as the ps_category_lang may be overwritten. So save your table field contents before updating! 5 Link to comment Share on other sites More sharing options...
andycatax Posted September 7, 2013 Author Share Posted September 7, 2013 Hi pascal That worked perfectly thank you for your help Link to comment Share on other sites More sharing options...
PascalVG Posted September 7, 2013 Share Posted September 7, 2013 Hi Andy, glad it worked :-) Happy selling, pascal Link to comment Share on other sites More sharing options...
Davallen Posted September 16, 2013 Share Posted September 16, 2013 Awesome Pascal, works very well! I removed the red lines to get rid or the "read more" and the "..." so it shows all content instead. I bet it's not the right way of doing it ;-) Can confirm that? {if $category->long_description}<div class="cat_desc">{if strlen($category->long_description) > 500}<p id="category_long_description_short">{$category->long_description|truncate:500}</p><p id="category_long_description_full" style="display:none">{$category->long_description}</p><a href="#" onclick="$('#category_long_description_short').hide(); $('#category_long_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>{else}<p>{$category->long_description}</p>{/if}</div>{/if} Link to comment Share on other sites More sharing options...
PascalVG Posted September 16, 2013 Share Posted September 16, 2013 Hi Dav, just take out everything except for: {if $category->long_description}<div class="cat_desc"> <p>{$category->long_description}</p></div>{/if} We then just show the whole description, all the time... pascal Link to comment Share on other sites More sharing options...
Davallen Posted September 17, 2013 Share Posted September 17, 2013 Thanks, works great! Link to comment Share on other sites More sharing options...
q-skins.dk Posted October 21, 2013 Share Posted October 21, 2013 Hi Pascal. Do you know how to do this in PS 1.4.8.2? Link to comment Share on other sites More sharing options...
PascalVG Posted October 30, 2013 Share Posted October 30, 2013 Hi q-skins, here we go: (N.B. Of all files we will edit, please make a backup first!!) (Note: Sample code is from PrestaShop 1.4.11, so may differ a little from 1.4.8.2, but should be recognisable) Edit /classes/Category.php: (Back up made?) At the top, just under: /** @var mixed Description */ public $description; add: /** @var mixed Long Description */ public $description_long; About 45-47 lines below this, you find something like: protected $fieldsValidateLang = array('name' => 'isCatalogName', 'link_rewrite' => 'isLinkRewrite', 'description' => 'isCleanHtml', 'description_long' => 'isCleanHtml', 'meta_title' => 'isGenericName', 'meta_description' => 'isGenericName', 'meta_keywords' => 'isGenericName'); Add the red code. in function: public function getTranslationsFieldsChild() { parent::validateFieldsLang(); return parent::getTranslationsFields(array('name', 'description', 'description_long', 'link_rewrite', 'meta_title', 'meta_keywords', 'meta_description')); } Add the red code. in function: public function getSubCategories($id_lang, $active = true) { $groups = FrontController::getCurrentCustomerGroups(); $sqlGroups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1'); $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(' SELECT c.*, cl.id_lang, cl.name, cl.description, cl.description_long, cl.link_rewrite, cl.meta_title, cl.meta_keywords, cl.meta_description FROM `'._DB_PREFIX_.'category` c ... } Add the red code, just after cl.description, Save the file. Edit file: /themes/<your theme folder>/category.tpl (Back up??) At the end of the file, you see code like this. Add the red code: {if $products} {include file="$tpl_dir./product-compare.tpl"} {include file="$tpl_dir./product-sort.tpl"} {include file="$tpl_dir./product-list.tpl" products=$products} {include file="$tpl_dir./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} {elseif !isset($subcategories)} <p class="warning">{l s='There are no products in this category.'}</p> {/if} {if $category->description_long} <div class="cat_desc_long">{$category->description_long}</div> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} And save the file. Edit file: /controllers/CategoryController.php (after making a backup...) just under: $this->category->description = nl2br2($this->category->description); add this: $this->category->description_long = nl2br2($this->category->description_long); and save the file. (If 1.4.8.2 doesn't have this line, that's ok...) The next file is a little hard to find: it's inside the folder with the name that you add to your domain when logging in to you back office: So, edit the file: /<your admin folder>/tabs/AdminCategories.php (backup...) The next code is a little difficult to find. Inside function: public function displayForm($token = NULL) Search for description (use Ctrl-F) You will find some code similar to this: <label>'.$this->l('Parent category:').' </label> <div class="margin-form">'; // Translations are not automatic for the moment $trads = array( 'Home' => $this->l('Home'), 'selected' => $this->l('selected'), 'Collapse All' => $this->l('Collapse All'), 'Expand All' => $this->l('Expand All') ); echo Helper::renderAdminCategorieTree($trads, array(isset($obj->id_parent) ? $obj->id_parent : Tools::getValue('id_parent', 1)), 'id_parent', true); echo '</div> <label>'.$this->l('Description:').' </label> <div class="margin-form translatable">'; foreach ($this->_languages AS $language) echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;"> <textarea name="description_'.$language['id_lang'].'" rows="10" cols="100">'.htmlentities($this->getFieldValue($obj, 'description', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' <p class="clear"></p> </div> From this, copy this part: <label>'.$this->l('Description:').' </label> <div class="margin-form translatable">'; foreach ($this->_languages AS $language) echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;"> <textarea name="description_'.$language['id_lang'].'" rows="10" cols="100">'.htmlentities($this->getFieldValue($obj, 'description', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' <p class="clear"></p> </div> (N.B. Your code may be a little bit different, but should be recognisable) And paste it directly under the copied code In the pasted code, add/change the red code: <label>'.$this->l('Long description:').' </label> <div class="margin-form translatable">'; foreach ($this->_languages AS $language) echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;"> <textarea name="description_long_'.$language['id_lang'].'" rows="10" cols="100">'.htmlentities($this->getFieldValue($obj, 'description_long', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' <p class="clear"></p> </div> So, together you will have something like: <label>'.$this->l('Parent category:').' </label> <div class="margin-form">'; // Translations are not automatic for the moment $trads = array( 'Home' => $this->l('Home'), 'selected' => $this->l('selected'), 'Collapse All' => $this->l('Collapse All'), 'Expand All' => $this->l('Expand All') ); echo Helper::renderAdminCategorieTree($trads, array(isset($obj->id_parent) ? $obj->id_parent : Tools::getValue('id_parent', 1)), 'id_parent', true); echo '</div> <label>'.$this->l('Description:').' </label> <div class="margin-form translatable">'; foreach ($this->_languages AS $language) echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;"> <textarea name="description_'.$language['id_lang'].'" rows="10" cols="100">'.htmlentities($this->getFieldValue($obj, 'description', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' <p class="clear"></p> </div> <label>'.$this->l('Long description:').' </label> <div class="margin-form translatable">'; foreach ($this->_languages AS $language) echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;"> <textarea name="description_long_'.$language['id_lang'].'" rows="10" cols="100">'.htmlentities($this->getFieldValue($obj, 'description_long', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' <p class="clear"></p> </div> and save the file. Finally, go to your cPanel, go to phpMyAdmin, open your database, and open the table ps_category_lang (N.B. if you have a different Prefix than "ps_", change accordingly) go to the SQL tab and paste this line: ALTER TABLE `ps_category_lang` ADD `description_long` text AFTER `description`;and press GO. Check if you see a success message. If you then browse the table, you should see a field description_long just behind the description field. Time to try it! Go to your back office, and open the Catalog Tab. Then EDIT any catalog (click on the sheet + pencil icon at the right) You should see a field Long description: just below the field Description: Add some text and save the changes. No error should occur... Then go to the front office and in the categories tree (from the category block-module), click the changed category. At the top you should see the normal description, then the products of the category. Then at the end you should see the long description. In my case, The text wrapped around the "compare" button, so I needed to move it down a little: Edit the file themes/<your theme folder>/css/global.css and add at the end: .cat_desc_long { margin-top:10px; } and save the file. You can add more css decoration of your long description of course, like font, font size, background image etc. that's further up to you. N.B. You may need to (TEMPORARILY!!): - turn OFF your smarty cache and - set 'Force compile' to YES in Preferences->Performanceto see all the changes. (Don't forget to turn cache back ON and Force compile to NO afterwards!) Well, that should do the trick. Let me know if it works. Hope this helps, pascal. Link to comment Share on other sites More sharing options...
q-skins.dk Posted October 30, 2013 Share Posted October 30, 2013 Hi Pascal. First sorry that i disrupts at you holiday, hope you enjoy and had a good time with you son. Then thanks a lot, I will go through your "walkthrough" listed above. I will let you know if that works Thanks a log Link to comment Share on other sites More sharing options...
PascalVG Posted October 31, 2013 Share Posted October 31, 2013 Was back already, So had some time to help :-) Let me know how things go! (N.B. Actually, a daughter ;-) ) Pascal Link to comment Share on other sites More sharing options...
q-skins.dk Posted November 27, 2013 Share Posted November 27, 2013 Finally tried to add the sec description, but it did not work, the long_description was added successfully, button the category site on BO my category-tree would not drop down, and there was a text on top of the site in BO like Long_description ... Do you know what went wrong? Link to comment Share on other sites More sharing options...
q-skins.dk Posted November 27, 2013 Share Posted November 27, 2013 The long description should have the same uft etc life description in my cpanel right? Link to comment Share on other sites More sharing options...
PascalVG Posted November 28, 2013 Share Posted November 28, 2013 Q-skin scan you email me The files that you've changed, as described above? Then I can have a quick look... [email protected] pascal Link to comment Share on other sites More sharing options...
bbclaudiu Posted June 20, 2014 Share Posted June 20, 2014 any version of this for 1.6? Link to comment Share on other sites More sharing options...
Crash99 Posted July 10, 2014 Share Posted July 10, 2014 Does anyone know how to get this to work in Prestashop 1.6? The additional text bit does not show up since I upgraded to 1.6..... Link to comment Share on other sites More sharing options...
PascalVG Posted July 11, 2014 Share Posted July 11, 2014 Hi bbclaudiu/Crash99, Follow the solution in post #2 (solution for PS version 1.5.x), The database table modification and the modification for file classes/Category.php: (Backup first...) are exactly as described in post #2. There are a few very small changes in themes/<your theme folder/category.tpl (backup file first): the original code in 1.6(.0.5) has been changed a tiny little bit. New code looks like this (first block is a little different from 1.5 code): {if $products} <div class="content_sortPagiBar clearfix"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="top-pagination-content clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="./product-compare.tpl" paginationId='bottom'} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> {/if} (The red, added code doesn't need any change, so just copy from post #2 and add here, like before) {elseif $category->id} <p class="alert alert-warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} -- END OF FILE -- The third file to edit is also a little different: controllers/admin/AdminCategoriesController.php: (backup first!) in function: public function __construct() just below: 'description' => array( 'title' => $this->l('Description'), 'callback' => 'getDescriptionClean', 'orderby' => false ), add the following code: 'long_description' => array( 'title' => $this->l('Long description'), 'callback' => 'getDescriptionClean', 'orderby' => false ), And in function: public function renderForm() just below: array( 'type' => 'textarea', 'label' => $this->l('Description'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), add the following code: array( 'type' => 'textarea', 'label' => $this->l('Long description'), 'name' => 'long_description', 'autoload_rte' => true, 'lang' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), I think that should do it. Didn't try it myself, so let me know if it works :-) pascal. 1 1 Link to comment Share on other sites More sharing options...
Crash99 Posted July 12, 2014 Share Posted July 12, 2014 (edited) Thanks Pascal, works fine Edited July 12, 2014 by Crash99 (see edit history) Link to comment Share on other sites More sharing options...
frosticek Posted September 8, 2014 Share Posted September 8, 2014 Any way to pack it into module? Link to comment Share on other sites More sharing options...
MarX Posted January 6, 2015 Share Posted January 6, 2015 (edited) Any way to pack it into module? I make it for 1.5.x B4N - Krátký popis ke kategorii - 1.5.x.zip You must also modify the template ;-) Edited January 6, 2015 by MarX (see edit history) 1 Link to comment Share on other sites More sharing options...
Niller Posted January 8, 2015 Share Posted January 8, 2015 Great description Link to comment Share on other sites More sharing options...
Publiselect Posted April 21, 2015 Share Posted April 21, 2015 Hello Pascal Great Post and no less amazing explanation, please Pascal could you teach us how to do the same moving the content description to the left column instead the bottom page. I guess it will result easy aswell (for you) regards Link to comment Share on other sites More sharing options...
PascalVG Posted April 22, 2015 Share Posted April 22, 2015 Hi Comprolo, Just to make sure, what do you mean exactly with the "content description"? - The first category description - The second (added in this post) description? (I vote for this one ;-) ) - something else? Image with some little arrows (from->to) would be great :-) Please elaborate, pascal Link to comment Share on other sites More sharing options...
Publiselect Posted April 26, 2015 Share Posted April 26, 2015 Hi Pascal Sorry , I was meaning the second description mentioned on this post, allowing to allocate the second drescription content on the left column (left column description) Best regards Link to comment Share on other sites More sharing options...
PascalVG Posted April 26, 2015 Share Posted April 26, 2015 Comprolo, Would that be just at the end of the left column, you mean? Do you mean a hook, linked to the left column, so that you can move it up/down on the left column as desired? Would then be best to make it as a module, and just add a function hookDisplayLeftColumn for additional display option. Haven't looked at the module that was posted above. Maybe modify this one a little. Shouldn't be too difficult then. Any experience coding php/smarty? What PS version do you use? pascal. Link to comment Share on other sites More sharing options...
Publiselect Posted May 1, 2015 Share Posted May 1, 2015 Hello Pascal I think is not necessary make a modul for this purpose, I have an old site in prestashop version 1.4 which have this modification made by a russian developer, I will try to discover how it was coded on the corre. I´m using latest prestashop Regards Link to comment Share on other sites More sharing options...
GardusTech Posted February 1, 2016 Share Posted February 1, 2016 PascalVG excellent!! Link to comment Share on other sites More sharing options...
Damian Lewandowicz Posted February 18, 2016 Share Posted February 18, 2016 Hello, Love your solution PascalVG! Do you have any suggestion how should I use it, if I wanted to add a date as a custom field to my category? Cheers, Damian Link to comment Share on other sites More sharing options...
soduno Posted March 9, 2016 Share Posted March 9, 2016 This gotta be a bad solution. Never edit core files! Do overrides if you really have to, or even better make it into a module. Edited core files can be lost in a upgrade of your Prestashop installation Link to comment Share on other sites More sharing options...
Nikhil Kumar Posted March 19, 2016 Share Posted March 19, 2016 For this you can maybe add a new field to the table ps_category_lang, and modify a few files: (in example below: Code from PS1.5.5.0) Go to your cPanel, go to phpMyAdmin and Run SQL (to do this, go to any table, and click SQL tab): ALTER TABLE `ps_category_lang` ADD `long_description` text AFTER `description`; and press GO. Edit file: classes/Category.php: (Backup first...) at the top, just under: /** @var string Description */ public $description; Add: /** @var string long_description */ public $long_description; in public static $definition = array( , just under: 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'), add: 'long_description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'), edit file themes/<your theme folder>/category.tpl: (Backup first...) just under: (almost at end of file) (add red text) <div class="content_sortPagiBar"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl" paginationId='bottom'} {include file="./product-compare.tpl" paginationId='bottom'} {include file="./nbr-product-page.tpl" paginationId='bottom'} </div> {include file="./pagination.tpl" paginationId='bottom'} </div> {/if} {if $category->long_description} <div class="cat_desc"> {if strlen($category->long_description) > 500} <p id="category_long_description_short">{$category->long_description|truncate:500}</p> <p id="category_long_description_full" style="display:none">{$category->long_description}</p> <a href="#" onclick="$('#category_long_description_short').hide(); $('#category_long_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a> {else} <p>{$category->long_description}</p> {/if} </div> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} -- END OF FILE -- Edit file: controllers/admin/AdminCategoriesController.php (Backup first...) just under: array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), add: array( 'type' => 'textarea', 'label' => $this->l('Long description:'), 'name' => 'long_description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), That should do the trick. pascal !!!! N.B. Be careful when updating PrestaShop, as the ps_category_lang may be overwritten. So save your table field contents before updating! category long desc.jpg product-list long desc.jpg HI pascal i have made the above said thing but the data is not getting inserted in the particular field in the database any help. Link to comment Share on other sites More sharing options...
Seven77 Posted June 28, 2016 Share Posted June 28, 2016 Hi Pascal, do you think that you can adapt to the latest version of prestashop ?I purchased Visual Composer module, but this does not apply to longdescription .Smartdatasoft argues that this change is old and Visual Composer just fits the description.Tnk u What PS version do you use? pascal. Link to comment Share on other sites More sharing options...
webprog Posted June 28, 2016 Share Posted June 28, 2016 You can buy module with second category descriptions here: http://addons.prestashop.com/en/16778-additional-description-category-new.html Link to comment Share on other sites More sharing options...
Seven77 Posted June 29, 2016 Share Posted June 29, 2016 Hi webprog tnk u for your help this solved my problem. Tnks You can buy module with second category descriptions here: http://addons.prestashop.com/en/16778-additional-description-category-new.html Link to comment Share on other sites More sharing options...
Seven77 Posted July 1, 2016 Share Posted July 1, 2016 Hi webprog i purchase additional description module but i dont have any idea as apply visual composer. Smartdatasoft send me this link https://smartdatasoft.zendesk.com/hc/en-us/articles/206598599-My-vc-short-code-show-in-smratblog-post-page- but i dont understand what should i do. Do u have any idea ? Tnks You can buy module with second category descriptions here: http://addons.prestashop.com/en/16778-additional-description-category-new.html Link to comment Share on other sites More sharing options...
KimTheMan Posted November 16, 2016 Share Posted November 16, 2016 (edited) (Google translated)PascaIVG, It Works perfectly in my categories. But I was wondering if it is possible also to get this exstra field in editorial module? Kim Edited November 16, 2016 by KimTheMan (see edit history) Link to comment Share on other sites More sharing options...
KimTheMan Posted December 8, 2016 Share Posted December 8, 2016 (Google translate) "PascaIVG, It Works perfectly in my categories. But I was wondering if it is possible also to get this exstra field in editorial module?" Sorry, my mistake. Enough instead homefeatured. Or just on the front generally Kim Link to comment Share on other sites More sharing options...
tuyote Posted February 22, 2017 Share Posted February 22, 2017 Hi, I followed the step for 1.6 version. I got an error now when I want to save into a category : An error occurred while updating an object. Category () An idea to solve the problem ? Link to comment Share on other sites More sharing options...
GardusTech Posted February 24, 2017 Share Posted February 24, 2017 (edited) I use it 1.6.1.7 without any issues. Probably some mistake in the edited files regarding the category, sorry I cannot be of more help. Edited February 24, 2017 by GardusTech (see edit history) Link to comment Share on other sites More sharing options...
TurkeyFish Posted December 10, 2017 Share Posted December 10, 2017 Does anyone have a way to do this in 1.6? I looked at the module linked a few posts above but you have to jump between creating new additional categories on the module page and the normal Edit Category page. I want to edit both descriptions on the existing Edit Category page. Link to comment Share on other sites More sharing options...
webprog Posted January 10, 2018 Share Posted January 10, 2018 (edited) On 10.12.2017 at 10:28 PM, TurkeyFish said: Does anyone have a way to do this in 1.6? I looked at the module linked a few posts above but you have to jump between creating new additional categories on the module page and the normal Edit Category page. I want to edit both descriptions on the existing Edit Category page. You can find these functions in the module: https://addons.prestashop.com/en/page-customization/16778-additional-description-category-new.html Edited January 10, 2018 by webprog (see edit history) Link to comment Share on other sites More sharing options...
Frenchy Posted May 15, 2018 Share Posted May 15, 2018 Anyone for prestashop 1.7 ? I don't have the category.tpl Link to comment Share on other sites More sharing options...
Daresh Posted November 3, 2018 Share Posted November 3, 2018 This free module should do the job for you: https://www.prestashop.com/forums/topic/929636-free-module-widget-additional-category-description/ 1 Link to comment Share on other sites More sharing options...
Voring Posted January 30, 2019 Share Posted January 30, 2019 Did any of you add a new field to product attributes: http://prntscr.com/megunp I would like to add the description field: http://prntscr.com/megvjf Link to comment Share on other sites More sharing options...
testb1234 Posted September 13, 2019 Share Posted September 13, 2019 Hi, i would like to show description at the bottom of the current category page, display a second (different) category description. Thnakyou Link to comment Share on other sites More sharing options...
Clasma Posted May 12, 2021 Share Posted May 12, 2021 Hello, I'm trying to add the second description therefore I followed your instructions, but I have an issue. I'm working with the 1.6.1.5 version so I followed the 1.6 instructions. It's almost working perfectly. If I add the text (for the second description) using the data base I can see it on my weebsite it's all good. However the issue is about the backoffice. The differents categories are not here anymore. That's what I see when I'm in catalogue/categories. Following the instructions I realised I do not have a "getTranslationsFieldsChild()" function in Category.php. So maybe it's because of this ? I don't know how to fix it can any of you help me please ? Thank you in advance. Link to comment Share on other sites More sharing options...
GardusTech Posted May 12, 2021 Share Posted May 12, 2021 (edited) Clasma I'm using 1.6.1.7 and I have working second descriptions (which is great for SEO and also for customers...) I use them only for products, not in categories, so I can't help you with your issue, sorry. Here's what I see in my panel: Edited May 12, 2021 by GardusTech (see edit history) Link to comment Share on other sites More sharing options...
GardusTech Posted May 12, 2021 Share Posted May 12, 2021 You can see the secondary description working on my site here: http://www.gardustech.com/it/japan-racing/5818-japan-racing-sl01-cerchi.html Link to comment Share on other sites More sharing options...
Kaper Posted October 12, 2021 Share Posted October 12, 2021 Can anyone help with 1.6 ? In administration a got error: An error occurred while updating an object. Category () And even if i change the text manualy in Database, it is not shown in front-end. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now