Post by coldrex » Thu Jun 09, 2016 11:46 pm

Hello,

how do I remove a description from product preview thumbnail?

A pic.

Remove it and lift the space up. Shortened height of product thumb, in other words.

Image

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by IP_CAM » Fri Jun 10, 2016 8:26 am

just remove:
<p><?php echo $product['description']; ?></p>
whereever you don't want to see the description, like in the
category.tpl - special.tpl - manufacturer.tpl - search.tpl - bestseller.tpl - featured.tpl - latest.tpl files
and change those two values in the stylesheet.css file,
from:

Code: Select all

.product-thumb .caption {
	padding: 0 20px;
	min-height: 180px;
}
.....
@media (max-width: 1200px) {
.product-grid .product-thumb .caption {
	min-height: 210px;
	padding: 0 10px;
}
to, by example:

Code: Select all

.product-thumb .caption {
	padding: 0 20px;
	min-height: 120px;
}
-----
@media (max-width: 1200px) {
.product-grid .product-thumb .caption {
	min-height: 120px;
	padding: 0 10px;
}
to re-adjust the minimum height of the Box.

Good Luck!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by coldrex » Fri Jun 10, 2016 12:08 pm

Went to:

/catalog/view/theme/default/template/product/

Deleted the line in:

product.tpl, category.tpl, special. tpl.

Nothing.

As well as CSS did not worked too. ??? ???

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by coldrex » Fri Jun 10, 2016 12:25 pm

Looks even worse":

Image

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 12:28 pm

Look in the modules folder in your theme's template directory (catalog/view/theme/default/template/module/). The files you should be looking for are:
  • bestseller.tpl
    featured.tpl
    latest.tpl
    special.tpl

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 coldrex » Fri Jun 10, 2016 2:46 pm

From that folder, in category.tpl even wasnt such string.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by i2Paq » Fri Jun 10, 2016 3:09 pm

Is this a custom theme?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by coldrex » Fri Jun 10, 2016 3:16 pm

Default 2.2

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 3:18 pm

fido-x wrote:Look in the modules folder in your theme's template directory (catalog/view/theme/default/template/module/). The files you should be looking for are:
  • bestseller.tpl
    featured.tpl
    latest.tpl
    special.tpl
Just the files listed. They are the only modules that have a product description.

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 coldrex » Fri Jun 10, 2016 3:24 pm

I have done exactly as You said.

Nothing.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 3:26 pm

Suggest you clear and refresh your modification cache.

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 coldrex » Fri Jun 10, 2016 3:37 pm

admin > Extensions > Modifications - refreshed.

AND THIS HELPED. BRILLIANT WORK, BRO!

... the only thing left that those CSS styles are still ugly ... :drunk:

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 3:41 pm

coldrex wrote:admin > Extensions > Modifications - refreshed.

AND THIS HELPED. BRILLIANT WORK, BRO!
No worries.
coldrex wrote:... the only thing left that those CSS styles are still ugly ... :drunk:
Yeah, the CSS can be a bit tricky.

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 coldrex » Fri Jun 10, 2016 3:49 pm

IP_CAM wrote:just remove:
<p><?php echo $product['description']; ?></p>
whereever you don't want to see the description, like in the
category.tpl - special.tpl - manufacturer.tpl - search.tpl - bestseller.tpl - featured.tpl - latest.tpl files
and change those two values in the stylesheet.css file,
from:

Code: Select all

.product-thumb .caption {
	padding: 0 20px;
	min-height: 180px;
}
.....
@media (max-width: 1200px) {
.product-grid .product-thumb .caption {
	min-height: 210px;
	padding: 0 10px;
}
to, by example:

Code: Select all

.product-thumb .caption {
	padding: 0 20px;
	min-height: 120px;
}
-----
@media (max-width: 1200px) {
.product-grid .product-thumb .caption {
	min-height: 120px;
	padding: 0 10px;
}
to re-adjust the minimum height of the Box.

Good Luck!
Ernie

The wierd thing is that I restored back original css settings for this, and its not like it was before ... ??? :-[

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 4:00 pm

OK, try this in your CSS:

Code: Select all

.product-thumb .caption {
	height: 120px;
	padding: 0 20px;
	overflow: hidden;
}
And:

Code: Select all

@media (max-width: 1200px) {
	.product-grid .product-thumb .caption {
		height: 120px;
		padding: 0 10px;
	}
}
@media (max-width: 767px) {
	.product-list .product-thumb .caption {
		min-height: 0;
		margin-left: 0;
		padding: 0 10px;
	}
	.product-grid .product-thumb .caption {
		min-height: 0;
	}
}

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 coldrex » Fri Jun 10, 2016 4:13 pm

Nope.

Looks like this (after and before image):

Image

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 4:19 pm

Change the height if you want them to be shorter. The value of 120px was only used as an example.

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 coldrex » Fri Jun 10, 2016 4:28 pm

I understand this.

I dont understand how to change the CSS of the buttom itself and make the "ex-tax" line be under the price.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by fido-x » Fri Jun 10, 2016 4:41 pm

In the aforementioned module template files, find (around line 29):

Code: Select all

<span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
and put a line break in front of it, eg.:

Code: Select all

<br /><span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
This will put the ex-tax line below the price.

How do you want the button to look?

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 coldrex » Fri Jun 10, 2016 7:05 pm

Like this:

<span class="price-tax"><?php echo $text_tax; ?><br /><?php echo $product['tax']; ?></span>

Nothing.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm
Who is online

Users browsing this forum: No registered users and 22 guests