Adding my own custom PHP pages?
I know how to add static pages in the x-cart admin, but I have pre designed PHP pages with the site content that I want to use within the x-cart framework - is it possible to create these somehow?
Thanks! |
Re: Adding my own custom PHP pages?
http://forum.x-cart.com/showthread.php?t=46954&highlight=auth.php
Also you can check pageid in pages.php before the line Code:
$smarty->assign("page_data", $page_data); |
Re: Adding my own custom PHP pages?
Thanks for that. I checked out the link and it told me I needed to add this to my code:
require_once 'auth.php'; So I added it as below but got the following errors: <?php require_once "/clientdata/clients/d/a/mywebsite.com/www/cms/lib/viewer_functions.php"; list($aboutRecords, $aboutMetaData) = getRecords(array( 'tableName' => 'about', 'where' => whereRecordNumberInUrl(1), 'limit' => '1', )); $aboutRecord = @$aboutRecords[0]; // get first record require_once 'auth.php'; ?> ERRORS > Warning: require_once(auth.php): failed to open stream: No such file or directory in /clientdata/clients/d/a/mywebsite.com/www/about_test.php on line 12 Fatal error: require_once(): Failed opening required 'auth.php' (include_path='/clientdata/clients/d/a/mywebsite.com/www/cms:.:/clientdata/php/php5/lib/php:/clientdata/php/lib') in /clientdata/clients/d/a/mywebsite.com/www/about_test.php on line 12 what have I done wrong? I tried to put the page in the x-cart directory (shop) but it still didn't work :( |
Re: Adding my own custom PHP pages?
Tha basic sheme is
Code:
require_once ... ; // your custom includes and requres here http://forum.x-cart.com/showpost.php?p=255489&postcount=3 |
Re: Adding my own custom PHP pages?
Thank you for posting the link again which I already read, but I do not understand what I am supposed to do. I made a file called class.Test.php and put that code in the top of my PHP page yet I am still getting the same error as per above?
|
Re: Adding my own custom PHP pages?
can somebody submit a sample page so i know how to do this..... thanks a million...:D/
|
All times are GMT -8. The time now is 05:00 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.