| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
include templates outside x-cart | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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:
and my 'xcart/customer/feat.php' contains Code:
(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, |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() What I do is create a php script that manually connects to the x-cart database, pulls the information I need, and then writes it using php. Then I skip all of the x-cart code which makes it faster, and avoids smarty.
|
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Hi Jon, Thanks for your reply..!
That is a solution indeed, but since the xcart-script is so flexible I just wondered if there is no eehh.. easier solution; i mean; when you have the solution it might be multi-purpose. I just wondered if it is possible.. and if it is.. how? ![]()
__________________
Xcart 4.0.19 Gold modules: X-affiliate, AOM, Feed Manager, SnS |
|||||||||
|
|||
X-Cart forums © 2001-2020
|