X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Best Seller Thumbnails (https://forum.x-cart.com/showthread.php?t=35065)

xcesiv 10-30-2007 11:11 PM

Best Seller Thumbnails
 
http://www.ls1store.xcesiv.com/xcart/home.php

Insted of having 4 links and very tiny thumbnails i would like to run with 4 thumbnails and jus the name.

Can someone please go through how this is done.

thanks

warren

balinor 10-31-2007 03:25 AM

Re: Best Seller Thumbnails
 
Open up modules/Bestsellers/bestsellers.tpl and edit it to display however you want.

xcesiv 10-31-2007 03:42 AM

Re: Best Seller Thumbnails
 
I have worked out how to move the text over and expand the size of the thumb nail. Now i just need to learn how to put the items next to each other.

Here is the code so far

Code:

{* $Id: bestsellers.tpl,v 1.8.2.1 2006/11/16 13:12:29 max Exp $ *}
{if $bestsellers}
{capture name=bestsellers}
<table cellpadding="0" cellspacing="2">
{foreach from=$bestsellers item=bestseller}
<tr>
{if $config.Bestsellers.bestsellers_thumbnails eq "Y"}
    <td width="160">
    <a href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller">{include file="product_thumbnail.tpl" productid=$bestseller.productid image_x=150 product=$bestseller.product}</a>
    </td>
{/if}
    <td>
    <b><a href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller">{$bestseller.product}</a></b><br />
{$lng.lbl_our_price}: {include file="currency.tpl" value=$bestseller.taxed_price}<br />
    </td>
</tr>
{/foreach}
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers extra='width="100%"'}
{/if}



All times are GMT -8. The time now is 04:42 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.