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)
-   -   How to Show Images in Bestseller Box (https://forum.x-cart.com/showthread.php?t=14125)

august 05-22-2005 12:54 PM

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

subzero 05-22-2005 02:26 PM

works like a charm thanx bro :)

just_me 02-01-2006 11:27 AM

Great mod for adding eye candy
 
Great mod. Thanks! :D

ShishaPipeUK 03-17-2006 10:37 AM

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}


Lionel 03-17-2006 10:52 AM

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

august 03-17-2006 12:17 PM

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.

Lionel 03-17-2006 12:30 PM

hmmmm I see lots of 4.17 in that post.

august 03-17-2006 12:43 PM

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.

Lionel 03-17-2006 12:49 PM

Anyway thank you for creating a mod. That was very clever and useful. I hope you create some more.

august 03-17-2006 01:23 PM

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.


All times are GMT -8. The time now is 04:17 AM.

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