| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Create a php page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Create a php page
I have searched and tried for hours in a row but don't manage to create a php page which displays a certain lbl from the database. In static pages this works but I don't get it to work with a php page ...
Can somebody help me out with this?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#2
|
|||||||
|
|||||||
Re: Create a php page
Did you associate a .tpl file with the php file?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Create a php page
I did the following; I created a .php file and a .tpl file as follows:
Php file (called new_page.php situated in shop directory): Code:
Tpl file (called new_page.tpl situated in skin1/customer/): Code:
In the language section of the database I've created 'lbl_new_page' Opening new_page.php results in: 'Page not found! The requested page does not exist or you are not allowed to access it! '
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#4
|
|||||||
|
|||||||
Re: Create a php page
Did you add the if statement to customer/home_main.tpl?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Create a php page
Yes, sorry forgot to mention, I added
Code:
under Code:
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#6
|
|||||||
|
|||||||
Re: Create a php page
Should be...
Code:
__________________
xcartmods.co.uk |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Create a php page
Thanks PhilJ,
I do get something else now: Code:
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#8
|
|||||||
|
|||||||
Re: Create a php page
Ensure the new_page.tpl is in your /skin1 directory.
__________________
xcartmods.co.uk |
|||||||
#9
|
|||||||||
|
|||||||||
Re: Create a php page
I got it working now, the new_page.tpl was in skin1/customer; I have placed it in skin1 and now it works Thanks for the help!
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ----------------------------------------------------------------------------------------------------------------------------------------- Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info |
|||||||||
#10
|
|||||||
|
|||||||
Re: Create a php page
do you get doubles warwick ? i tried that and i got doubles of everything. all i basically need to do is to display the best sellers on the left side of my site's main page ?
__________________
X-CART GOLD 4.18, mysql 4.025, php 5, IIS on 2K3 |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|