jaimeweb Posted July 5, 2012 Share Posted July 5, 2012 Hi, I am on working on a shop with PS 1.2.5. I have configured the Description textarea for each category to accept HTML. However when on the Catalog tab in Admin Area the content of the description pushes the page out of line. Is there any way i can simply remove that description column from the Admin Catalog page. Image attached thanks Link to comment Share on other sites More sharing options...
mim Posted July 5, 2012 Share Posted July 5, 2012 Hi, I am on working on a shop with PS 1.2.5. I have configured the Description textarea for each category to accept HTML. However when on the Catalog tab in Admin Area the content of the description pushes the page out of line. Is there any way i can simply remove that description column from the Admin Catalog page. Image attached thanks Hi, if you want just to hide it I think you can do it so by adding some simple rules in admin.css in prestashop css folder, you have to check it though cause I didn't but maybe it'd work for example: #description_short_1_parent, #description_1_parent{ display: none; } Link to comment Share on other sites More sharing options...
jaimeweb Posted July 5, 2012 Author Share Posted July 5, 2012 Hmmmm, tried adding it but nothing seems to change... Link to comment Share on other sites More sharing options...
mim Posted July 5, 2012 Share Posted July 5, 2012 then find this file: AdminProduct.php in the Admin folder (that you had to rename to something else) / then "tabs" folder, find thiss part of code: (line 2884 in the last stable version) <tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr> <tr> <td class="col-left">'.$this->l('Short description:').'<br /><br /><i>('.$this->l('appears in the product lists and on the top of the product page').')</i></td> <td style="padding-bottom:5px;" class="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 class="rte" cols="100" rows="10" id="description_short_'.$language['id_lang'].'" name="description_short_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_short', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' </td> </tr> <tr> <td class="col-left">'.$this->l('Description:').'<br /><br /><i>('.$this->l('appears in the body of the product page').')</i></td> <td style="padding-bottom:5px;" class="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 class="rte" cols="100" rows="20" id="description_'.$language['id_lang'].'" name="description_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' </td> </tr> and replace it with: <tr style="display: none"><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr> <tr style="display: none"> <td class="col-left">'.$this->l('Short description:').'<br /><br /><i>('.$this->l('appears in the product lists and on the top of the product page').')</i></td> <td style="padding-bottom:5px;" class="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 class="rte" cols="100" rows="10" id="description_short_'.$language['id_lang'].'" name="description_short_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_short', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' </td> </tr> <tr style="display: none"> <td class="col-left">'.$this->l('Description:').'<br /><br /><i>('.$this->l('appears in the body of the product page').')</i></td> <td style="padding-bottom:5px;" class="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 class="rte" cols="100" rows="20" id="description_'.$language['id_lang'].'" name="description_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' </td> </tr> I tested this time and it just worked but please make a back up of your file and take care also to do not changing these symbiles --> ( ' ), I mean take care about them because if you leave one of them open you'll get an error in BO, 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