| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
php code, direcly into template? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() How should i do if i wanted some php code direcly into my template
Code:
i want that under the copyright on all my pages, and also other debug code... but when i try and input as it is now in copyright.tpl it dun't work as i want it to =)
__________________
----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Create another php file called myscript.php for example, then insert into the TPL file where you want to see it the following:
{include_php file="myscript.php"} That worked for me for a news system, a random image (not related to xcart) and a random quote system. ![]()
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#3
|
|||||||||
|
|||||||||
![]()
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() ah ok, thx...
__________________
----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() http://smarty.php.net/manual/en/variable.php.handling.php
That was a much better url ![]() now it works... all i had to do was change <?php and ?> into {php} and {/php} very easy =)
__________________
----------------------------------- 4.2 rox... http://www.fivestar.nu | www.nystil.se | www.hidealite.se |
|||||||||
|
|||
X-Cart forums © 2001-2020
|