Page 1 of 2

How to remove description

Posted: Mon Nov 10, 2014 10:59 pm
by cypee
Hi, May I know how to remove the description for my features, latest and product category page?
because i only need description to be show in my product page.

Thanks

Re: How to remove description

Posted: Tue Nov 11, 2014 9:13 am
by fido-x
The template files for modules are found in the directory called "catalog/view/theme/default/template/module". Remove the following (line 9):

Code: Select all

<p><?php echo $product['description']; ?></p>
from the following template files:
  • bestseller.tpl
    featured.tpl
    latest.tpl
    special.tpl
You'll also find the same line of code in the following template files found in "catalog/view/theme/default/template/product".
  • category.tpl
    compare.tpl
    manufacturer_info.tpl
    product.tpl
    search.tpl
    special.tpl
Removing this line from product.tpl will not remove the product description, only remove it from any related products.

Re: How to remove description

Posted: Tue Nov 11, 2014 10:51 am
by cypee
Hi fidi-x

I has fix it, look nice now but why the gap like attach is still so big

Re: How to remove description

Posted: Tue Nov 11, 2014 11:36 am
by fido-x
The space is a result of a minimum height being applied to the product box in the stylesheet (catalog/view/theme/default/stylesheet/stylesheet.css).

The following block of code, found at lines 549 to 552, defines the minimum height:

Code: Select all

.product-grid .product-thumb .caption {
	min-height: 210px;
	padding: 0 10px;
}
Just reduce the "min-height" attribute to something more suitable.

Re: How to remove description

Posted: Wed Mar 04, 2015 2:11 am
by Saulevas
Hi fido-x.

I'm also trying to remove this description from category view. Tell me, do I have to remove line <p><?php echo $product['description']; ?></p> from all those .tpl files> It sounds logical to remove it only from category.tpl as category view is the only view I want the description to disappear from. However when I remove this line category.tpl nothing happens ???

Re: How to remove description

Posted: Wed Mar 04, 2015 4:54 am
by petpetep
Hi,

Look in this folder: /system/modification/catalog/view/theme/default/template/product

Re: How to remove description

Posted: Wed Mar 04, 2015 1:24 pm
by Saulevas
Awesome! This solves the problem.

Thank you!

Regards
Saul

Re: How to remove description

Posted: Sat Mar 07, 2015 8:58 pm
by nexus85
Hello,

I Don't want to remove the discription but I want to make it custom. Now it takes the fist few karakters of the product discription. I want a custom made discription, it would be ideal when I can write it on a new added form on the product page.

Re: How to remove description

Posted: Fri Apr 10, 2015 10:39 am
by jiao
I removed that annoying description another way, I edited the controller files. Should I not have done it that way?

Replace

Code: Select all

    'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
with

Code: Select all

    'description' => (int) $this->config->get('config_product_description_length') == 0 ? '' : utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
in
catalog\controller\product
category.php
product.php
search.php

and

catalog\controller\module
latest.php
featured.php
bestseller.php

Re: How to remove description

Posted: Sat May 16, 2015 4:34 pm
by petpetep
Hi there,

I made mistake. Every time change core files, and after that in admin panel > extensions > modifications make refresh.

Because next time when you do this all changes, made only in /system/ folders will be lost.

Re: How to remove description

Posted: Sat Sep 26, 2015 2:23 pm
by ju5t4fun
Hi

I trying to change the price font size. where can I change it on the latest, main catalogue and special price? THanks

Re: How to remove description

Posted: Fri Oct 09, 2015 1:41 am
by petpetep
/public_html/stolove.bg/catalog/view/theme/default/stylesheet/stylesheet.css

after line 598

Re: How to remove description

Posted: Fri Oct 09, 2015 10:58 pm
by viethemes
ju5t4fun wrote:Hi

I trying to change the price font size. where can I change it on the latest, main catalogue and special price? THanks
You may like my extension Live Theme Editor which helps you to customize your theme visually :)

Re: How to remove description

Posted: Wed Feb 24, 2016 12:02 am
by Vali
Hello

And how remove i the category description in OC 2.1.0.2?

Anyone :D

Thanks in advance

Re: How to remove description

Posted: Fri May 20, 2016 10:26 pm
by beebee
Vali wrote:Hello

And how remove i the category description in OC 2.1.0.2?

Anyone :D

Thanks in advance

Follow the instruction shown in the second post.

Re: How to remove description

Posted: Thu Jun 02, 2016 1:37 pm
by jesline_91
Somehow I could have removed my 'Description' word. How do I get it back ???

Re: How to remove description

Posted: Thu Jun 02, 2016 4:18 pm
by beebee
jesline_91 wrote:Somehow I could have removed my 'Description' word. How do I get it back ???
You may wanna try adding the code back to the place from where you removed. Maybe follow the second post by fido-x and add the script[instead of removing it ;) ].

Re: How to remove description

Posted: Thu Jun 02, 2016 10:39 pm
by viethemes
jesline_91 wrote:Somehow I could have removed my 'Description' word. How do I get it back ???
Hi, What did you do?

Re: How to remove description

Posted: Sat Jun 04, 2016 3:43 pm
by Senseadv
I think there is an option in theme to remove it

Re: How to remove description

Posted: Thu Mar 09, 2017 3:07 am
by shahidmahmood
I am also looking fr the same settings as I don't want description in product box on product category page and also want to remove the empty gaps.
I tried exactly what is explained in the post lie removing this line from files mentioned;
<p><?php echo $product['description']; ?></p>

and I also changed Hieght to 170 in the stylesheet.css

but nothing happened at all to the front-end, could you please assist what and where I am missing something. Any help would highly be appreciated.