Re: Newest Products
Hi,
This post seems so simple but I just can't get it right. I don't want the new products to be called from a link in the lhs (i.e. VertMenuLeftColumn). I would like the new products to display in the main content area.
I thought if I add the following include to my home.php that everything would be sweet:-
include "./newproducts.php";
This is a small chunk of my home.php file:-
// WCM - CDSEO Links
include $xcart_dir."/modules/cdseolinks/cdseo_cat.php";
require $xcart_dir."/include/categories.php";
if ($active_modules["Manufacturers"])
include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php";
if (!empty($cat))
include "./products.php";
if (empty($products))
include "./featured_products.php";
include "./newproducts.php";
if ($active_modules["Bestsellers"])
include $xcart_dir."/modules/Bestsellers/bestsellers.php";
My home_main.tpl looks like this at the bottom:-
{elseif $main eq "newproducts"}
{include file="customer/main/newproducts.tpl"}
{else}
{include file="common_templates.tpl"}
{/if}
What I get is a blank white page. I haven't changed any of the new files, so I must be doing something wrong. Can someone put me on the right path?
__________________
X-CART 4.1.8 (Add-Ons: onSale, CDSEO, AOM, Thickbox)
PHP 4.4.4
SQL 4.1.21
Linux O/S
|