By all means it looks like it should work (at least from my point of view)
But again my experience is with php, not smarty.
The code: (product_images.tpl)
Quote:
{* $Id: product_images.tpl,v 1.12 2004/05/28 12:21:05 max Exp $ *}
{if $images ne ""}
{capture name=dialog}
<DIV align="center">
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
[img]{$images[image].tmbn_url}[/img]
{else}
[img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]
{/if}
{/if}
{/section}
</DIV>
{/capture}
{if $smarty.capture.dialog ne ""}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}
{/if}
{/if}
|
(detailed_popup_js.tpl)
Quote:
{***
# Detailed Images Popup
# Version 2.1
# http://www.cart-lab.com
# info@cart-lab.com
# (C)opyright 2003-2004 CartLab, all rights reserved.
# Full license at: http://www.cart-lab.com/license.php
***}
{if $active_modules.Detailed_Product_Images ne "" && $images}
{literal}
<SCRIPT language=JavaScript1.2>
<!--
function productimagedetail(product_id) {
var w = 120;
var h = 120;
var center = ',left = 387,top = 309';
window.open('{/literal}{$catalogs.customer}{literal}/product_detailed_images.php?productid='+product_id ,"detailedproduct","width="+w+",height="+h+",resiz able,scrollbars=yes,status=no'");
}
-->
</SCRIPT>
{/literal}
{/if}
|
Like i said, it looks like its configured for the alt tags correctly but its not displaying them for some reason. If im overlooking something please let me know
For anyone looking to mod xcart:
If you want to set up popup windows for detailed images the code above is a good start.