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

How to Show Images in Bestseller Box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-17-2006, 02:30 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

I agree. She has lots of nice Mods and already got some from her. To me, the best X-cart mod ever created is TelaFirma's image mod.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #12  
Old 03-18-2006, 12:44 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Default Thumbnail in bestseller list modified code

ShishaPipeUK,
I really like your modified code for showing thumbnail images in the bestseller list. It looks much sleeker.
Thanks for taking the time to share it.
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #13  
Old 06-08-2006, 11:46 AM
 
PP PP is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 34
 

Default Re: How to Show Images in Bestseller Box

Quote:
Originally Posted by august
Since nobody seems to find the solution, I start testing and got this:

In skin1/modules/Bestsellers/menu_bestsellers.tpl, find this:


And change it for this:

Quote:
<a href="product.php?productid={$bestsellers[num].productid}&cat={$cat}">{$bestsellers[num].product}
<div align="center">{include file="product_thumbnail.tpl" productid=$bestsellers[num].productid image_x=50 product=$bestsellers[num].product}</div>
</a>

You can change the size in image_x= any size you want

Have it working for version 4.0.13



How would one add the Y axis as well ?
__________________
X-Cart version 4.1.7 Pro
PHP 4.4.3
GD bundled (2.0.28 compatible)
MySQL server 4.1.21-standard
MySQL client 4.1.21
Web server Apache/1.3.37 (Unix)
Operation system Linux
Perl 5.008007
XML parser (expat) 1.95.6
Reply With Quote
  #14  
Old 06-08-2006, 12:27 PM
 
PP PP is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 34
 

Default

Well this is what I came up with. I had to chage the axis because many of my images are tall.

Code:
{* $Id: menu_bestsellers.tpl,v 1.10.2.1 2004/11/16 11:15:01 max Exp $ *} {if $bestsellers} {capture name=menu} {section name=num loop=$bestsellers} <FONT class="VertMenuItems">{math equation="value+1" value=$smarty.section.num.index}.</FONT> <A href="product.php?productid={$bestsellers[num].productid}&cat={$cat}&bestseller" class=VertMenuItems>{$bestsellers[num].product} <div align="center">{include file="product_thumbnail.tpl" productid=$bestsellers[num].productid image image_y=50 product=$bestsellers[num].product}</div> </a> {/section} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_bestsellers menu_content=$smarty.capture.menu } {/if}
__________________
X-Cart version 4.1.7 Pro
PHP 4.4.3
GD bundled (2.0.28 compatible)
MySQL server 4.1.21-standard
MySQL client 4.1.21
Web server Apache/1.3.37 (Unix)
Operation system Linux
Perl 5.008007
XML parser (expat) 1.95.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 12:43 PM.

   

 
X-Cart forums © 2001-2020