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?
You should take out this piece of code in stylesheet:
Or just replace none for inline.
Code: Select all
.product-grid .description {
display: none;
}
I did it and it works.dbassa wrote:You should take out this piece of code in stylesheet:
Or just replace none for inline.Code: Select all
.product-grid .description { display: none; }
How to do for feature product module?
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!!!
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!!!
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
http://fwmdev.com/cars/index.php/new-ca ... /15-e-z-go
Who is online
Users browsing this forum: Amazon [Bot] and 14 guests