X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Image Size (https://forum.x-cart.com/showthread.php?t=5020)

jeeya 10-30-2003 04:09 PM

Image Size
 
Hello,

I have Super Hit Section and Used Movies Section ( It is same as Featured Products - I choose products manually from administration to show on main page - just as featured products )

I want image size to be 100% to be showed only in Super Hit Section and Used Movie Section in Side Menu.

This is my product_thumbanail.tpl
-----------------------------------------
{* $Id: product_thumbnail.tpl,v 1.8 2003/04/24 09:50:33 svowl Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $full_url}{$http_location}{else}..{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}[/img]{/if}
-------------------------------------------


And this is my Super Hit Section.tpl
------------------------------------------
{* $Id: menu_bestsellers.tpl,v 1.7 2003/02/25 08:58:47 olga Exp $ *}
{if $mh_products}
{capture name=menu}
{foreach from=$mh_products item=v key=k}
{if $k < $config.General.num_product_image4mh}
<p align="center">{include file="product_thumbnail.tpl" productid=$v.productid image_x=$config.Appearance.thumbnail_width product=$v.product}

<a href="product.php?productid={$v.productid}&cat={$c at}" class=VertMenuItems>
<font color="#FF3300">{$v.product}</font>
</a><font color="#FF3300"> </font><font style="color=#000000;">
- {include file="currency.tpl" value=$v.price}</font></p>
<p align="left"> {else}
{$v.product}
-
<font style="color: #000000;">
{include file="currency.tpl" value=$v.price}</font>

{/if}
{/foreach}</p>
<center>
<p align="center">{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="Super Hit Sale!" menu_content=$smarty.capture.menu }
{/if}
------------------------------------------------------


What change should I made to show Image 100% in Super Hit section ONly.

Thanks.

jeeya 10-30-2003 11:40 PM

I figured that Out.
It was easy #-o

adpboss 11-01-2003 07:14 AM

Why don't you share with us... :)

jeeya 11-01-2003 02:44 PM

Hello,

all I changed was the following Line. :D

"{include file="product_thumbnail.tpl" productid=$v.productid image_x=120 product=$v.product}"


Thanks

jeeya 11-11-2003 12:00 AM

.
 
#-o ok that code worked perfect as I needed.

But It doesn't let me clone the Item ( It gives error and makes clone but no Image )

Second, I can not upload image directly from other website's webserver by putting url of image. It either shows up half image or just stays blank, just like when image doesn't down load and shows " X " image.

Any Idea to fix this thing other than chaning above code back to the same it was. :lol:

jeeya 11-11-2003 12:01 AM

.
 
#-o ok that code worked perfect as I needed.

But It doesn't let me clone the Item ( It gives error and makes clone but no Image )

Second, I can not upload image directly from other website's webserver by putting url of image. It either shows up half image or just stays blank, just like when image doesn't down load and shows " X " image.

Any Idea to fix this thing other than chaning above code back to the same it was. :lol:

jeeya 11-11-2003 12:02 AM

:idea: :?:

jeeya 11-11-2003 12:03 AM

why it gives big errors when I post message!


All times are GMT -8. The time now is 10:00 AM.

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