Post by katapult » Fri Sep 03, 2010 6:16 pm

Hi. is it possible to display only picture or picture and price in the modules as Featured, Specials etc. My product titles are so long and it doesn´t look good when they are displaying in the modules. What and where I have to modify ? Help please.

New member

Posts

Joined
Fri Sep 11, 2009 5:17 am

Post by mystifier » Fri Sep 03, 2010 7:16 pm

You can easily delete the fields you don't want in the module template but there are two different ones depending on the position setting.

For left/right sidebox:
catalog/view/theme/default/template/module/featured.tpl

For home (central) large box:
catalog/view/theme/default/template/module/featured_home.tpl

So in last example, delete lines:

Code: Select all

<a href="<?php echo str_replace('&', '&', $products[$j]['href']); ?>"><?php echo $products[$j]['name']; ?></a><br />
<span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
(which of course ought to be <span class="model"> 8) )

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by katapult » Sun Sep 05, 2010 1:50 am

Sent: Fri Sep 03, 2010 7:14 pm
From: mystifier
To: katapult

To get rid of everything except image, delete whole code below.

Image size is set in Admin Configuration->Image

Regards,

Kevin



<td valign="top"><a href="<?php echo str_replace('&', '&', $product['href']); ?>"><?php echo $product['name']; ?></a>
<?php if ($display_price) { ?>
<br />
<?php if (!$product['special']) { ?>
<span style="font-size: 11px; color: #900;"><?php echo $product['price']; ?></span>
<?php } else { ?>
<span style="font-size: 11px; color: #900; text-decoration: line-through;"><?php echo $product['price']; ?></span> <span style="font-size: 11px; color: #F00;"><?php echo $product['special']; ?></span>
<?php } ?>
<a class="button_add_small" href="<?php echo $product['add']; ?>" title="<?php echo $button_add_to_cart; ?>" >&nbsp;</a>
<?php } ?>
<?php if ($product['rating']) { ?>
<br />
<img src="catalog/view/theme/default/image/stars_<?php echo $product['rating'] . '.png'; ?>" alt="<?php echo $product['stars']; ?>" />
<?php } ?></td>

New member

Posts

Joined
Fri Sep 11, 2009 5:17 am

Post by katapult » Sun Sep 05, 2010 1:53 am

Thanks. Everything is ok except image size. I tryied all boxes but without success. Maybe I have to correct size in some file ?

New member

Posts

Joined
Fri Sep 11, 2009 5:17 am

Post by mystifier » Sun Sep 05, 2010 2:05 am

In catalog/controller/module/featured.php, try changing:

Code: Select all

'image' => $this->model_tool_image->resize($image, 38, 38),
to increase the size from 38 x 38

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by katapult » Sun Sep 05, 2010 3:41 am

Great. Thanks.

New member

Posts

Joined
Fri Sep 11, 2009 5:17 am
Who is online

Users browsing this forum: No registered users and 12 guests