How do I add PHP code to the HTML boxes on the front of the site?
Posted by Michael G.K on 30 August 2008 05:36 AM

IXXO Cart uses the Smarty Template Engine to generate site HTML.

Using the traditional <php> tag will allow php to be embedded, however they will not be escaped irregardless of the $php_handling setting. To properly embed php into your site template, please use {php} to include the code you wish to embed.

This is for advanced users only and not typically needed. Please see the example below

{php}
// including a php script directly
// from the template.
include("/path/to/display_weather.php");
{/php}

This will not work for custom boxes created from the admin area.

(165 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).