| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Is it possible to embed php code into template files? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Is it possible to embed php code into template files?
Hi all,
We've been using iframes to run external php code on our e-comm pages, but now we need more control from the page. So is it possible to embed php code into template files?
__________________
X-Cart Version 4.5.4 Version 5.1.11 Version 5.2.15 x3 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Is it possible to embed php code into template files?
It is possible however it creates a security hole and should not be used.
The ability to do this was active by default with older versions of XC. With newer versions it is turn off by default because of security. You will need to modify the smarty script and allow for PHP tags
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: Is it possible to embed php code into template files?
Quote:
Thanks! Could you please provide the steps?
__________________
X-Cart Version 4.5.4 Version 5.1.11 Version 5.2.15 x3 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Is it possible to embed php code into template files?
Simple forum search and you can find the answer
https://forum.x-cart.com/showpost.php?p=360239&postcount=2 see after "If using v4.5.5+, you'll need to edit include/templater/templater.php" Oh sorry I just saw this is for XC5? You cannot do this there. You should create custom module, do all the work in php and call function to return result in template file
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|