Zen Cart Logo
Forums / All Other Contributions/Addons / Bestsellers Thumbnail Images

Bestsellers Thumbnail Images

Locked

Views: 1,740

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Feb 2008, 4:35 AM
#1
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Bestsellers Thumbnail Images

Hello,

I uploaded this mod (the latest version dec. 07) and im wondering how do I get the number back and get rid of the price. I would also like to have the product name centered.

Lastly, how do I make the image larger? I tried on the css but that didn't help. Im using IH2 but the size on the sidebox is different to what I specified in admin? Is there other controls for it?

Thanks

5 Feb 2008, 9:12 AM
#2
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Bestsellers Thumbnail Images

Ok, I have gotten rid of the price and have centered the product name. So my only problem now is getting the number back but most importantly is the image.

I checked where the image is coming from (bmz_cache) and it seems to be the right size but for some reason, it is being resized when on the bestsellers sidebox?

5 Feb 2008, 9:43 AM
#3
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Bestsellers Thumbnail Images

Managed to fix the image problem :) Only bringing the number back is left

14 May 2008, 11:32 PM
#4
htsean avatar

htsean

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Re: Bestsellers Thumbnail Images

Berserker:

Managed to fix the image problem :) Only bringing the number back is left

I ended up perusing this thread as I was figuring out how to get the number 1 through 10 back for the Bestsellers Thumbnail Images 2.0 mod. So here it is:

BTW, this is assuming you already have the bestsellers thumbnail mod already installed..

In your includes\templates\YOUR_TEMPLATE\sideboxes\tpl_best_sellers.php

Line 18

Replace this line:

    $content .= '<tr><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . 	zen_image($imgLink, zen_trunc_string($bestsellers_list[$i]['name']), SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2) . '</a></td><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a><BR><div align=right>' . zen_get_products_display_price($bestsellers_list[$i]['id']) . '</div></td></tr>' . 	"\n";

and replace that with this:

    $content .= '<tr><td valign=top>' . $i . '</td><td valign=top><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . 	zen_image($imgLink, zen_trunc_string($bestsellers_list[$i]['name']), SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2) . '</a></td><td valign=middle><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a><BR><div align=right>'  . '</div></td></tr>' . 	"\n";

the main thing i did was put in another <TD> tags in front (to the left) of the thumbnails and then display the $i variable which is already counting 1 thru 10.