önce yedek al..catalog/view/theme/defaolt/template/product/category.tpl dosyasını aşağıdaki ile değiştir
gifi de benim siteden alabilirsin
Kod:
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<h1><?php echo $heading_title; ?></h1>
</div>
</div>
<div class="middle">
<table style="padding-bottom:10px;">
<tr>
<?php if ($thumb) { ?>
<td><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></td>
<?php } ?>
<?php if ($description) { ?>
<td><?php echo $description; ?></td>
<?php } ?>
</tr>
</table>
<?php if (!$categories && !$products) { ?>
<div class="content"><?php echo $text_error; ?></div>
<?php } ?>
<?php if ($categories) { ?>
<table class="">
<?php for ($i = 0; $i < sizeof($categories); $i = $i + 3) { ?>
<tr>
<?php for ($j = $i; $j < ($i + 3); $j++) { ?>
<td width="25%"><?php if (isset($categories[$j])) { ?>
<image src="catalog/view/theme/default/image/linecat.gif"> <a href="<?php echo $categories[$j]['href']; ?>"></a>
<a href="<?php echo $categories[$j]['href']; ?>"><span style="color: #444; font-size: 12px;"><?php echo $categories[$j]['name']; ?></span></a>
<?php } ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
<?php } ?>
<?php if ($products) { ?>
<div class="sort">
<div class="div1">
<select name="sort" onchange="location = this.value">
<?php foreach ($sorts as $sorts) { ?>
<?php if (($sort . '-' . $order) == $sorts['value']) { ?>
<option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
<div class="div2"><?php echo $text_sort; ?></div>
</div>
<table class="">
<?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
<tr>
<?php for ($j = $i; $j < ($i + 4); $j++) { ?>
<td width="25%"class="thumb" onmouseover="this.className='thumb2'" onmouseout="this.className='thumb'"><?php if (isset($products[$j])) { ?>
<a href="<?php echo $products[$j]['href']; ?>"><img src="<?php echo $products[$j]['thumb']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a><br />
<a href="<?php echo $products[$j]['href']; ?>"><span style="color: #444; font-size: 11px;"><?php echo $products[$j]['name']; ?></span></a><br />
<span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
<?php if ($display_price) { ?>
<?php if (!$products[$j]['special']) { ?>
<span style="color: #900; font-weight: bold;"><?php echo $products[$j]['price']; ?></span>
<?php } else { ?>
<span style="color: #900; font-weight: bold; text-decoration: line-through;"><?php echo $products[$j]['price']; ?></span> <span style="color: #F00;"><?php echo $products[$j]['special']; ?></span>
<?php } ?>
<a class="button_add_small" href="<?php echo $products[$j]['add']; ?>" title="<?php echo $button_add_to_cart; ?>" > </a>
<?php } ?>
<br />
<?php if ($products[$j]['rating']) { ?>
<img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
<?php } ?>
<?php } ?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
<div class="pagination"><?php echo $pagination; ?></div>
<?php } ?>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</div>
</div>
<?php echo $footer; ?>
benim tema ufak olduğu için 3 sıra ayrladım. 4 lü yan yana ayarlamak istersen
bu koddaki 3 değerlerini 4 olarak ayarla
Kod:
<?php for ($i = 0; $i < sizeof($categories); $i = $i + 3) { ?>
<tr>
<?php for ($j = $i; $j < ($i + 3); $j++) { ?>