View Single Post
  #1  
Old 10-06-2005, 12:55 PM
 
Wambli Wambli is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 52
 

Default categories gone?

Hello everyone
I made a new PHP page for the first time and I used the code below everthing showed up on the new page except the categories list it is just gone the table is still there but everthing inside is gone? you can see what I mean here:

http://www.omagruene.com/xcart/login.php


does anyone know why or what I can do?


1. Create 'new_page.php' file in the '<xcart_root_dir>' with the following content :

---------------------------------------
<?php
require "./auth.php";

# Assign Smarty variables and show template
$smarty->assign("main","new_page");

func_display("customer/home.tpl", $smarty);
?>
---------------------------------------

2. Open '<xcart_root_dir>/skin1/customer/home_main.tpl' template and add following code :

---------------------------------------
{elseif $main eq "new_page"}
{include file="new_page.tpl"}
---------------------------------------

after the following fragment:

---------------------------------------
{elseif $smarty.get.mode eq "unsubscribed"}
{include file="main/unsubscribe_confirmation.tpl"}
---------------------------------------

3. Then create 'request_catalog.tpl' template in the '<xcart_root_dir>/skin1/' folder with the following content:

---------------------------------------
{$lng.lbl_new_page}
---------------------------------------
__________________
Christmas
x-cart 4.1.6
Reply With Quote