| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding my own custom PHP pages? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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!
__________________
Xcart Version 4.1.9 [win] |
|||||||
#2
|
|||||||||
|
|||||||||
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:
__________________
Regards, Victor Dubiniuk X-Cart Skins Store - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#3
|
|||||||
|
|||||||
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
__________________
Xcart Version 4.1.9 [win] |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Adding my own custom PHP pages?
Tha basic sheme is
Code:
http://forum.x-cart.com/showpost.php?p=255489&postcount=3
__________________
Regards, Victor Dubiniuk X-Cart Skins Store - twenty two different skins for 4.1.x and 4.2.x; - 4.3.x compatible versions are available; - refresh you store now! Smart menu X-Cart add-on for 4.1.8 - 4.3.x Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x |
|||||||||
#5
|
|||||||
|
|||||||
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?
__________________
Xcart Version 4.1.9 [win] |
|||||||
#6
|
|||||||
|
|||||||
Re: Adding my own custom PHP pages?
can somebody submit a sample page so i know how to do this..... thanks a million...
__________________
4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|