Hopefully you guys can answer me this question like ASAP: Site's almost done.
Ok!
I have the clients image products setup in a table
http://www.trevinosphoto.com/store/customer/home.php?cat=262
and the actual image page setup as follows:
http://www.trevinosphoto.com/store/customer/product.php?productid=17146&cat=262&page=1
Now the customer...never being happy with what they have want a button the clicks next and previous.
Well i have the code written in php that (in theory) whould take them to the next product for that category.
It looks like this:
<?php
$pimg_counter;
$ppg_counter;
$nxt_page;
$productid_num;
if ( $pimg_counter >= 0 && $pimg_counter <= 8 )
{
$productid_num = $productid + 1;
$nxt_page = $page + 1;
$pimg_counter = $pimg_counter + 1;
echo "<a href=product.php?productid=".$productid_num."&cat= ".$cat."&page=".$page."&pimg_counter=".$pimg_count er.">NEXT IMAGE</a>
";
echo "<a href=home.php?cat=".$cat."&page=".$nxt_page.">NEXT PAGE</a>";
}
else
{
$productid_num = $productid + 1;
$nxt_page = $page + 1;
$pimg_counter = $pimg_counter + 1;
echo "<a href=product.php?productid=".$productid_num."&cat= ".$cat."&page=".$nxt_page."&pimg_counter=".$pimg_c ounter.">NEXT IMAGE</a>
";
echo "<a href=home.php?cat=".$cat."&page=".$nxt_page.">NEXT PAGE</a>";
}
?>
The only problem I have right now is that I can't get the include this PHP script into product.tpl
How can I include the above script into a smarty template?