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)
-   -   Create New Page, Not Using Static Page Functions (https://forum.x-cart.com/showthread.php?t=29433)

bmm 03-06-2007 01:52 PM

Create New Page, Not Using Static Page Functions
 
Hi,
I would like to create a new page that resides outside of my X-Cart directory and that can includes header, footer, side nav, etc. X-Cart is installed in my root directory, so I would like to set up (x-cart_root/new_directory/new_page.php).

I don▓t want to use either of X-Cart▓s static page options;
X-cart embedded page; due to the fact that I can not control the directory (e.g. public_html/skin1/pages/US/)
Or
X-cart Root Level; does not have the header, footer, side nav, etc.

I know I have to create a ⌠new_page.php■ and ⌠new_page.tpl■, but I▓m not sure of the code for each page, how to reference each other and where ⌠new_page.tpl■ should reside.
Also, I▓m pretty sure I have to reference ⌠new_page.tpl■ on the ⌠home_main.tpl■.

Sorry, if this is posted, I looked and found many bits and pieces, but nothing I could follow to do this completely.
Can anyone walk me through the steps?

TIA

inebriate 03-06-2007 03:41 PM

Re: Create New Page, Not Using Static Page Functions
 
have a look at http://forum.x-cart.com/showthread.php?t=28870

bmm 03-06-2007 04:08 PM

Re: Create New Page, Not Using Static Page Functions
 
Thanks, I read this and tried some things, but I still can't get my head around this!

So, new_page.tpl goes into (/skin1/customer)

And new_page.php can reside in (x-cart_root/new_directory/new_page.php)


In new_page.php, I need to call;

$smarty->assign("location", $location);

func_display("customer/new_page.tpl",$smarty);

Right?

Thanks


All times are GMT -8. The time now is 07:08 AM.

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