Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Static Pages?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-01-2004, 12:50 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default 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?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #2  
Old 09-01-2004, 04:39 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Swtich Smarty parsing on then use

{php}

php code in here

{/php}

That should do it.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #3  
Old 09-01-2004, 06:10 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

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
Version 4.0.11
Reply With Quote
  #4  
Old 09-08-2004, 12:51 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

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

Any idea why this would cause an error?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:25 AM.

   

 
X-Cart forums © 2001-2020