X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Static Pages? (https://forum.x-cart.com/showthread.php?t=9193)

RobotDeathSquad 09-01-2004 12:50 PM

Static Pages?
 
Are they really, totally staic?

I would like to have a "Static" page, but include some php to pull some info from the DB into it. Is that at all possible?

I've tried to name the page .php, but that doesn't work. I've tried to just toss some php in, and that doesn't work.
I've tried to use {literal} and that doesnt' work.


Any help here?

groovico 09-01-2004 04:39 PM

Swtich Smarty parsing on then use

{php}

php code in here

{/php}

That should do it.

RobotDeathSquad 09-01-2004 06:10 PM

I do that and I get this error:

Parse error: parse error in /home/path/to/file/xcart/Smarty-2.5.0/plugins/function.eval.php(26) : eval()'d code on line 142

RobotDeathSquad 09-08-2004 12:51 PM

I'm getting an "eval'd code" error on line 4 which is:
$database_fishingconditions = "dbname";

Any idea why this would cause an error?


All times are GMT -8. The time now is 01:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.