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)
-   -   bestsellers thumbnails (https://forum.x-cart.com/showthread.php?t=53009)

Phoenixone 03-25-2010 04:27 PM

bestsellers thumbnails
 
hi guys i want my best sellers to display the thumbnail instead of the text how would i change the code for that?

Code:

{foreach from=$bestsellers item=b name="bestsellers"}
          <strong>{math equation="x+1" x=$smarty.foreach.bestsellers.index}.</strong>
              <a href="product.php?productid={$b.productid}&amp;cat={$cat}&amp;bestseller=Y">{$b.product|escape}</a>
          <br />
      {/foreach}


please help

Phoenixone 03-25-2010 04:58 PM

Re: bestsellers thumbnails
 
got it done thanks

AusNetIT 04-17-2010 06:17 AM

Re: bestsellers thumbnails
 
Hi,

Please share with others.

Thanks,

minfinger 06-21-2010 06:23 PM

Re: bestsellers thumbnails
 
How do you make the Best seller thumbnails bigger?

I've tried this, but no go, just made the pic taller:
Code:

{*
$Id: bestsellers.tpl,v 1.14 2009/04/18 06:33:04 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $bestsellers}
  {capture name=bestsellers}
    <ul class="bestsellers-products-item">
      {foreach from=$bestsellers item=bestseller}
        <li>
          {if $config.Bestsellers.bestsellers_thumbnails eq "Y"}
            <a href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller=Y">{include file="product_thumbnail.tpl" productid=$bestseller.productid product=$bestseller.product tmbn_url=$bestseller.tmbn_url image_x=180 image_y=130}</a>
            <div class="details">
              <a class="product-title" href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller=Y">{$bestseller.product|escape}</a><br />
              {$product.descr}
              {$lng.lbl_our_price}: {include file="currency.tpl" value=$bestseller.taxed_price}
            </div>
            <div class="clearing"></div>
          {else}
            <a class="product-title" href="product.php?productid={$bestseller.productid}&amp;cat={$cat}&amp;bestseller=Y">{$bestseller.product|escape}1</a><br />
            {$lng.lbl_our_price}: {include file="currency.tpl" value=$bestseller.taxed_price}
          {/if}
        </li>
      {/foreach}
    </ul>
  {/capture}
  {include file="customer/dialog.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers}
{/if}


minfinger 06-23-2010 08:43 PM

Re: bestsellers thumbnails
 
Anyone? Thanks

minfinger 06-27-2010 05:50 PM

Re: bestsellers thumbnails
 
I'm so ticked that I can't get the Images in the Best Seller to be the right size!!


All times are GMT -8. The time now is 06:05 AM.

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