| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Create a php page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#2
|
|||||||
|
|||||||
![]() Did you associate a .tpl file with the php file?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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 ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#4
|
|||||||
|
|||||||
![]() Did you add the if statement to customer/home_main.tpl?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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 ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#6
|
|||||||
|
|||||||
![]() Should be...
Code:
__________________
xcartmods.co.uk |
|||||||
#7
|
|||||||||
|
|||||||||
![]() 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 ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#8
|
|||||||
|
|||||||
![]() Ensure the new_page.tpl is in your /skin1 directory.
__________________
xcartmods.co.uk |
|||||||
#9
|
|||||||||
|
|||||||||
![]() I got it working now, the new_page.tpl was in skin1/customer; I have placed it in skin1 and now it works
![]()
__________________
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 ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#10
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|