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
  #1  
Old 05-22-2005, 12:54 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default How to Show Images in Bestseller Box

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
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote
  #2  
Old 05-22-2005, 02:26 PM
 
subzero subzero is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 238
 

Default

works like a charm thanx bro
__________________
Version 4.0.17
Reply With Quote
  #3  
Old 02-01-2006, 11:27 AM
  just_me's Avatar 
just_me just_me is offline
 

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

Default Great mod for adding eye candy

Great mod. Thanks!
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #4  
Old 03-17-2006, 10:37 AM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default

Thanks for the mod, i just changed it a little bit, not much, but i think it looks better, you can see this at: http://www.shisha.co.uk/shopcart/home.php

Code:
{* $Id: menu_bestsellers.tpl,v 1.10.2.1 2004/11/16 11:15:01 max Exp $ *} {if $bestsellers} {capture name=menu} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> {section name=num loop=$bestsellers} <TR> <TD width="30"> {include file="product_thumbnail.tpl" productid=$bestsellers[num].productid image_x=25 product=$bestsellers[num].product} </TD> <TD class="VertMenuItems" height="16">{math equation="value+1" value=$smarty.section.num.index}. {$bestsellers[num].product} </TD> </TR> {if not $smarty.section.num.last} <TR> <TD class="VertMenuLine">[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {/if} {/section} </TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_bestsellers menu_content=$smarty.capture.menu } {/if}
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #5  
Old 03-17-2006, 10:52 AM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

Why is everyone going crazy creating this mod? It already ships with xcart. Simply use included bestsellers.tpl instead of menu_bestsellers.tpl. :P
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #6  
Old 03-17-2006, 12:17 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default

Quote:
Originally Posted by Lionel
Why is everyone going crazy creating this mod? It already ships with xcart. Simply use included bestsellers.tpl instead of menu_bestsellers.tpl. :P

Because at that time, Mr. Genius, the version it was created didn't have it. And since it was a simple code they decided to implement in future versions.
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote
  #7  
Old 03-17-2006, 12:30 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

hmmmm I see lots of 4.17 in that post.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #8  
Old 03-17-2006, 12:43 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default

Well, that's what people do when they update their data, I'm using 4.0.18, and have not updated the info. It looks like I'm using 4.0.13 but I'm not.
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote
  #9  
Old 03-17-2006, 12:49 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

Anyway thank you for creating a mod. That was very clever and useful. I hope you create some more.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #10  
Old 03-17-2006, 01:23 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default

Make a search for Carrie, she has the best efficients MODs you'll ever find in this group. Boomer is also good, and also Shan, Balinor, and Jon,
I'm sure you'll benefit a lot from them.
I sugest that you visit Carrie web site, there is an MOD that'll benefit you since you are using gold version.
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
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 10:27 AM.

   

 
X-Cart forums © 2001-2020