Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Bestsellers into a column table in the main area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 04-14-2006, 05:20 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default 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
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020