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

Image Size

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-30-2003, 04:09 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default 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.
Reply With Quote
  #2  
Old 10-30-2003, 11:40 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

I figured that Out.
It was easy
Reply With Quote
  #3  
Old 11-01-2003, 07:14 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Why don't you share with us...
Reply With Quote
  #4  
Old 11-01-2003, 02:44 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

Hello,

all I changed was the following Line.

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


Thanks
Reply With Quote
  #5  
Old 11-11-2003, 12:00 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

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.
Reply With Quote
  #6  
Old 11-11-2003, 12:01 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

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.
Reply With Quote
  #7  
Old 11-11-2003, 12:02 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

Reply With Quote
  #8  
Old 11-11-2003, 12:03 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

why it gives big errors when I post message!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:30 PM.

   

 
X-Cart forums © 2001-2020