Post by cypee » Mon Nov 10, 2014 10:59 pm

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

Attachments

Screen Shot 2014-11-10 at 10.49.31 PM.png

Screen Shot 2014-11-10 at 10.49.31 PM.png (299.11 KiB) Viewed 9970 times


Newbie

Posts

Joined
Mon May 14, 2012 5:24 pm

Post by fido-x » Tue Nov 11, 2014 9:13 am

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.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by cypee » Tue Nov 11, 2014 10:51 am

Hi fidi-x

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

Attachments

Screen Shot 2014-11-11 at 10.41.47 AM.png

Screen Shot 2014-11-11 at 10.41.47 AM.png (195.19 KiB) Viewed 9951 times


Newbie

Posts

Joined
Mon May 14, 2012 5:24 pm

Post by fido-x » Tue Nov 11, 2014 11:36 am

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.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Saulevas » Wed Mar 04, 2015 2:11 am

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 ???

New member

Posts

Joined
Wed Jan 08, 2014 3:36 am

Post by petpetep » Wed Mar 04, 2015 4:54 am

Hi,

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

New member

Posts

Joined
Sat Aug 11, 2007 4:19 pm


Post by Saulevas » Wed Mar 04, 2015 1:24 pm

Awesome! This solves the problem.

Thank you!

Regards
Saul

New member

Posts

Joined
Wed Jan 08, 2014 3:36 am

Post by nexus85 » Sat Mar 07, 2015 8:58 pm

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.

New member

Posts

Joined
Wed Jan 27, 2010 4:40 pm

Post by jiao » Fri Apr 10, 2015 10:39 am

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

Active Member

Posts

Joined
Mon Apr 23, 2012 12:11 am

Post by petpetep » Sat May 16, 2015 4:34 pm

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.

New member

Posts

Joined
Sat Aug 11, 2007 4:19 pm


Post by ju5t4fun » Sat Sep 26, 2015 2:23 pm

Hi

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

Newbie

Posts

Joined
Tue Feb 17, 2015 12:04 am

Post by petpetep » Fri Oct 09, 2015 1:41 am

/public_html/stolove.bg/catalog/view/theme/default/stylesheet/stylesheet.css

after line 598

New member

Posts

Joined
Sat Aug 11, 2007 4:19 pm


Post by viethemes » Fri Oct 09, 2015 10:58 pm

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 :)

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by Vali » Wed Feb 24, 2016 12:02 am

Hello

And how remove i the category description in OC 2.1.0.2?

Anyone :D

Thanks in advance

Newbie

Posts

Joined
Tue Feb 23, 2016 5:32 pm

Post by beebee » Fri May 20, 2016 10:26 pm

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.

BeeBee
When the going gets weird, the weird turn Pro!!


User avatar
New member

Posts

Joined
Thu May 12, 2016 5:13 pm

Post by jesline_91 » Thu Jun 02, 2016 1:37 pm

Somehow I could have removed my 'Description' word. How do I get it back ???

Attachments

missing description.JPG

missing description.JPG (11.32 KiB) Viewed 7146 times


Newbie

Posts

Joined
Mon May 30, 2016 4:01 pm

Post by beebee » Thu Jun 02, 2016 4:18 pm

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 ;) ].

BeeBee
When the going gets weird, the weird turn Pro!!


User avatar
New member

Posts

Joined
Thu May 12, 2016 5:13 pm

Post by viethemes » Thu Jun 02, 2016 10:39 pm

jesline_91 wrote:Somehow I could have removed my 'Description' word. How do I get it back ???
Hi, What did you do?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by Senseadv » Sat Jun 04, 2016 3:43 pm

I think there is an option in theme to remove it

OpenCart Still need more edit


User avatar
Newbie

Posts

Joined
Sat Jun 04, 2016 3:35 pm

Post by shahidmahmood » Thu Mar 09, 2017 3:07 am

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.

Newbie

Posts

Joined
Wed Mar 08, 2017 10:04 pm
Who is online

Users browsing this forum: No registered users and 10 guests