X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Bestsellers into a column table in the main area (https://forum.x-cart.com/showthread.php?t=21128)

amy2203 04-14-2006 05:20 AM

Bestsellers into a column table in the main area
 
I've used Balinors mod from http://forum.x-cart.com/viewtopic.php?t=14995&highlight=recommended+produc ts+column

to make by bestsellers into the same format.

Change skin1/modules/bestsellers/bestsellers.tpl

Code:

{* $Id: bestsellers.tpl,v 1.3.2.1 2004/11/16 11:15:01 max Exp $ *}
{if $bestsellers}
{capture name=bestsellers}

{assign var="tmp" value="0"}

{section name=num loop=$bestsellers}
{if $bestsellers[num].productid}{assign var="tmp" value="1"}{/if}
{/section}

{section name=num loop=$bestsellers}

{ if %num.first% }
<table id="bestsellerstable" border=0 width=100%>
{/if}

  {if $smarty.section.num.index is div by 3}
    </tr><tr valign="top">
  {/if}

<td>
{if $config.Modules.bestsellers_thumbnails eq "Y"}
{include file="product_thumbnail.tpl" productid=$bestsellers[num].productid image_x=25 product=$bestsellers[num].product}


 {/if}


{$bestsellers[num].product}[/b]

{$lng.lbl_our_price}: {include file="currency.tpl" value=$bestsellers[num].price}

</td>

{ if %num.last% }
</tr></table>
{/if}


{/section}

{/capture}
{include file="dialog.tpl" title=$lng.lbl_bestsellers content=$smarty.capture.bestsellers extra="width=100%"}
{/if}


This is for 4.0.18

hth


All times are GMT -8. The time now is 02:16 PM.

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