View Single Post
  #1  
Old 09-16-2004, 03:27 AM
  epi's Avatar 
epi epi is offline
 

Member
  
Join Date: Apr 2004
Posts: 22
 

Default include templates outside x-cart

Hi,
I'd like to show the featured items on our homepage, which is one level up the x-cart-directory.

Now i have created a file(in the x-cart-dir) which prints the featured items

So my index.php contains:
Code:
<?php include('xcart/customer/feat.php');?>

and my 'xcart/customer/feat.php' contains
Code:
<?php require "xcart/customer/auth.php"; require "xcart/customer/featured_products.php"; return $smarty->display("./home_feat.tpl"); ?>
when i run feat.php in my browser it does show the created table perfectly;
(home_feat.tpl is a custom made template to fit the content in the page)

Fortunately is the current web-site very hard to integrate in X-cart, so i have to integrate X-cart in the web-site

What I get returned is:
"ERROR: Can not initiate application! Please check configuration."

Is there some sort of general method to include x-cart templates in your standard PHP-page..?

I use X-cart 3.5.10

Thanks in advance,
Reply With Quote