Ok i modified the product_images.tpl to read
{* $Id: product_images.tpl,v 1.6 2002/05/20 06:55:24 lucky Exp $ *}
{if $images ne ""}
{capture name=dialog}
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
<src="../details.php">
{/if}
{/section}
{/capture}
{if $smarty.capture.dialog ne ""}
{include file="/home/store/www/detailed_pages/16290.htm" title=Variations
content=$smarty.capture.dialog extra="width=100%"}
{/if}
{/if}
and created a file called details.php which reads
<?
# $Id: details.php, 2004/05/12
#
# Show details page by productid
#
require "./smarty.php";
require "./config.php";
$result = db_query("select image,image_type from $sql_tbl[thumbnails] where productid='$productid'");
if (db_num_rows($result))
list($image, $image_type) = db_fetch_row($result);
db_free_result($result);
if (!empty($image)) {
header("Content-type: $image_type");
echo $image;
} else {
header("Content-type: text/html");
readfile(/home/store/www/detailed_pages/16290.htm);
}
?>
made the folder detailed_pages and uploaded 16290.htm
this is working fine. How would i set the
readfile(/home/store/www/detailed_pages/16290.htm);
to call the page by {productid}.htm?
Then I could just create a product page for each item and upload it to that directory and it could call the appropriate page for the item.
Thanks in advance,
KiDD
http://store.sturgisrally.net (Live)
X-Cart Gold Ver. 3.3.4