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

Looking for a smarty var

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-30-2004, 12:15 PM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default Looking for a smarty var

Xcart has included {$product.tmbn_url}

which gives the full path to the thumbnail.
http:/www.xxx.com/cart/images/thumb/abc.gif

Is there one of these for the detailed images?

I need a var that passes the full url

AND THIS WILL NOT WORK, so dont say it:
"{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}"



TIA,
Tony
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #2  
Old 10-05-2004, 05:54 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

nobody has a thought???
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #3  
Old 10-05-2004, 05:57 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

look at skin1/modules/detailedimages dir
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 10-05-2004, 06:35 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

Smarty error, what am i missing?

Code:
{literal} <script language="JavaScript"> function showPic(nextpic) { document.roll.src = nextpic } function restorePic(){ document.roll.src=" {/literal} {$product.tmbn_url} {literal} "} </script> {/literal} {if $images ne ""} <div align=center>Detailed Images Click to Enlarge {section name=image loop=$images} {if $images[image].avail eq "Y"} <a href= "#" onMouseOver="showPic({$xcart_web_dir}/product_image.php?imageid={$images[image].imageid})" onMouseOut="restorePic()"> [img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]</a> {/if} {/section}</div> {/if}
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:33 PM.

   

 
X-Cart forums © 2001-2020