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.
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:
(which of course ought to be <span class="model">
)
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 />

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
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; ?>" > </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>
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; ?>" > </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>
In catalog/controller/module/featured.php, try changing:
to increase the size from 38 x 38
Code: Select all
'image' => $this->model_tool_image->resize($image, 38, 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
Who is online
Users browsing this forum: No registered users and 6 guests