ok here goes...
total_list.php in the customer directory (not under skin1)
Code:
<?
require "../smarty.php";
require "../config.php";
@include "./https.php";
require "./auth.php";
require "../include/categories.php";
require "./all_products.php";
#
# Assign Smarty variables and show template
#
$smarty->assign("main","listall");
$smarty->assign("location",$location);
$smarty->display("customer/list_all.tpl");
?>
all_products.php in the same directory
Code:
<?
#
# Get products data for all categories and store it into $products array
#
$search_query = "($sql_tbl[products].categoryid='%' or $sql_tbl[products].categoryid1='%' or $sql_tbl[products].categoryid2='%' or $sql_tbl[products].categoryid3='%') and $sql_tbl[products].forsale='Y' group by $sql_tbl[products].productid order by $sql_tbl[categories].category asc";
// $search_query = "($sql_tbl[products].forsale='Y' group by $sql_tbl[products].productid order by $sql_tbl[products].orderby ".($config["General"]["product_order_reversed"]=="Y"?"desc":"asc").";
$products = func_search_products($search_query, $user_account['membership']);
$smarty->assign("products",$products);
$smarty->assign("navigation_script","total_list.php?main=listall");
?>
list_all.tpl in skin1/customer/ to:
Code:
{* $Id: list_all.tpl,v 1.2.2.1 2002/10/03 10:21:19 zorg Exp $ *}
{ config_load file="$skin_config" }
<html>
<head>
<title>{$lng.txt_site_title} :: All of Our Products</title>
{ include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</head>
<body class="background">
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
<table border=0 width=100% cellpadding=0 cellspacing=0 align="center">
<tr>
<td class=TableLeft width=150 valign=top>
{ include file="customer/categories.tpl" }
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{ include file="customer/menu_cart.tpl" }
{if $login eq "" }
{else}
{ include file="authbox.tpl" }
{/if}
{if $login eq "" }
{ include file="auth.tpl" }
{else}
{ include file="menu_profile.tpl" }
{/if}
{ include file="help.tpl" }
{ include file="poweredby.tpl" }
</td>
<td width=20></td>
<td valign=top>
{include file="customer/home_main.tpl"}
</td>
<td width=20></td>
</tr>
<tr>
<td class=TableLeft></td>
<td></td>
<td>{ include file="copyright.tpl" }
</td>
<td></td>
<td></td>
</tr>
</table>
{ include file="rectangle_bottom.tpl" }
</body>
</html>
and add the following code into home_main.tpl in skin1/customer above where it says:
{else}
{include file="common_templates.tpl"}
{/if}
Code:
{elseif $main eq "listall"}
{include file="customer/main/show_all.tpl"}
There is probably an easier way to do this but this worked for me.
Enjoy
