Online Shopping Cart Software
Talk to a sales representative 1-800-506-0398
 

How do I add PHP code to the HTML boxes on the front of the site?

Pinnacle 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.




User Opinions (174 votes)

97% thumbs up 2% thumbs down

How would you rate this answer?



Thank you for rating this answer.