| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Help - STILL can't create a custom .php page | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Help - STILL can't create a custom .php page
Hello,
I've been trying to create a custom .php page called "ourstory.php" that uses my existing site template. Nothing seems to work Here is my code for "ourstory.php": Code:
Then I created "ourstory.tpl" which includes simply includes the text that I want to be displayed on the page. It's saved in skin1/customer/main. Can anyone help? This is driving me nuts! Thanks, Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#2
|
|||||||
|
|||||||
This may be a really stupid question, but is there a reason you aren't using the static page feature built in to X-Cart?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Because static pages don't include the site template so I lose the look and feel, menus, footer, etc.
Unless I'm doing something wrong... Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#4
|
|||||||
|
|||||||
They do if you use the Embedded Level instead of the Root Level. The Embedded ones show up just like a help page or product page would, right in the central column of your template
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
That would be perfect!
When I tried to create a page I got the error: "Can not to save file: please check the write permissions." Which files need their permissions changed? I thought I changed everything when I installed X-Cart, but I must have missed something. Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#6
|
|||||||||
|
|||||||||
You have to change this:
Code:
to: Code:
Then edit your skin1/customer/home_main.tpl and somewhere in the middle put: Code:
Where outstory.tpl is in the skin1/customer/main/ folder. |
|||||||||
#7
|
|||||||||
|
|||||||||
you should find a folder called pages/us which should be set tyo chmod 777 to allow xcart to saved the file it creates for your new page
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#8
|
|||||||||
|
|||||||||
Sorry to jump in, but can you use new main page templates with a file outside of the XC install?
For instance we have a support helpdesk that reside in public_html/support/ could this be linked into a template page? Cheers.
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#9
|
|||||||
|
|||||||
Quote:
I looked everywhere and can't find a folder by that name... Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#10
|
|||||||||
|
|||||||||
skin1/pages/us
if they aint there create them yourself
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|