Post by DnAWebCreations » Sun Apr 08, 2012 6:32 am

I am working on a site here http://www.klassykrystals.com I have it set to show grid view. The problem I am having is the the Product description is not showing in grid view, it you change it to list view then it shows. Can anyone tell me what I need to change so it will show in grid view?


Posts

Joined
Mon Feb 13, 2012 6:52 am

Post by dbassa » Sun Apr 08, 2012 8:01 am

You should take out this piece of code in stylesheet:

Code: Select all

.product-grid .description {
	display: none;
}
Or just replace none for inline.

User avatar
Active Member

Posts

Joined
Tue May 19, 2009 12:11 am
Location - Spain

Post by DnAWebCreations » Sun Apr 08, 2012 10:22 pm

ok I will try that thanks.


Posts

Joined
Mon Feb 13, 2012 6:52 am

Post by alexdog1805 » Wed Feb 20, 2013 4:24 pm

dbassa wrote:You should take out this piece of code in stylesheet:

Code: Select all

.product-grid .description {
	display: none;
}
Or just replace none for inline.
I did it and it works.

How to do for feature product module?

Active Member

Posts

Joined
Sat May 28, 2011 1:51 am

Post by faiqwaheed » Sat Mar 02, 2013 9:34 pm

OpenCart Version 1.5.5.1

1. Firstly open this file:
catalog\controller\module\featured.php

2. Find this line:
$this->data['products'][] = array(

under this add this line:
'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..'

OR

2. Find and replace:
'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id'])

with this line:
'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']),
'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..'

3. Now open this file:
catalog\view\theme\default\template\module\featured.tpl

4. Add this line:
<div class="description"><?php echo $product['description']; ?></div>

After this:
<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>

OR

<div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
<?php } ?>



Enjoy!!!

Newbie

Posts

Joined
Sat Mar 02, 2013 9:01 pm
Location - Usa

Post by alexdog1805 » Mon Mar 04, 2013 3:12 pm

solved.thanks!

Active Member

Posts

Joined
Sat May 28, 2011 1:51 am

Post by maryswave » Wed Sep 11, 2013 10:30 am

I need to display the product description in grid view but the display none causes the category view to revert to list view, any other ideas?

http://fwmdev.com/cars/index.php/new-ca ... /15-e-z-go

Newbie

Posts

Joined
Thu Jun 27, 2013 4:50 pm

Post by maryswave » Wed Sep 11, 2013 11:58 pm

figured it out:

.product-grid .description {
display: block;
width: 210px;
height: 75px;
overflow: hidden;
}

Newbie

Posts

Joined
Thu Jun 27, 2013 4:50 pm
Who is online

Users browsing this forum: Majestic-12 [Bot] and 19 guests