Post by tipsytoff » Tue Jun 09, 2009 6:38 pm

I want to share the method of modifying Best Sellers to Look Better, Bigger and Cleaner

You can look at my site from my signature to see the demo

Replace your catalog\view\theme\default\template\module\bestseller.tpl with the code below

Code: Select all

        <div class="box">
            <div class="top">
                <img src="catalog/view/theme/default/image/icon_bestsellers.png" alt="" /><?php
                echo $heading_title; ?></div>
            <div class="middle">
                <?php if ($products) { ?>
                <table cellpadding="2" cellspacing="0" style="width: 100%;">
                    <?php foreach ($products as $product) { ?>
                    <tr>
                        <td valign="top" align="center" width="1">
                            <a href="<?php echo $product['href']; ?>">
                                <img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="center" width="1">
                            <?php if (!$product['special']) { ?> <span style="font-size: 11px; color: #900; font-weight: bold">
                                Price: <?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 } ?>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="center">
                            <a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                        </td>
                    </tr>
                    <?php } ?>
                </table>
                <?php } ?>
            </div>
            <div class="bottom">
                &nbsp;</div>
        </div>
Then go to catalog\controller\module\bestseller.php
and change

Code: Select all

HelperImage::resize($image, 18, 18)
to

Code: Select all

HelperImage::resize($image, 100, 100)
Enjoy :)

Kris


User avatar
Newbie

Posts

Joined
Mon Jun 08, 2009 2:55 am
Location - Fresno, CA
Who is online

Users browsing this forum: No registered users and 4 guests