Pinnacle Cart Shopping Cart Software

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 ( )

How would you rate this answer?



Thank you for rating this answer.

Related Articles

Attachments

No attachments were found.

Continue