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)
-   -   Looking for a smarty var (https://forum.x-cart.com/showthread.php?t=9648)

ETInteractive.com 09-30-2004 12:15 PM

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}"

:D

TIA,
Tony

ETInteractive.com 10-05-2004 05:54 AM

nobody has a thought???

shan 10-05-2004 05:57 AM

look at skin1/modules/detailedimages dir

ETInteractive.com 10-05-2004 06:35 AM

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}



All times are GMT -8. The time now is 05:32 PM.

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