X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   tpl without xcart surroundings (https://forum.x-cart.com/showthread.php?t=46345)

amy2203 03-17-2009 11:29 PM

tpl without xcart surroundings
 
I've got a tpl that I want to display without all the xcart stuff around it. This is in the admin.

I'm planning on printing the pages out and to pdf so I don't want any of the xcart menus/title etc.

TIA

Victor D 03-18-2009 05:57 AM

Re: tpl without xcart surroundings
 
So you should put your tpl somewhere in skin1 folder, write your own php file and place into admin directory.
PHP is something like this:
Code:

<?php
require "./auth.php";
func_display("path_to_your_tpl/your_tpl_name.tpl",$smarty);
?>

where path_to_your_tpl is relative to skin1 folder
f.e. if your tpl is in skin1/admin it should be func_display("admin/your_tpl_name.tpl",$smarty);


All times are GMT -8. The time now is 05:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.