If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Php code insede ez pages of Zen Cart 1.3.8

Php code insede ez pages of Zen Cart 1.3.8

Locked

Started by never11 on 28 Mar 2010, 2:09 PM · Views: 733

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Mar 2010, 2:09 PM
#1
never11 avatar

never11

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Php code insede ez pages of Zen Cart 1.3.8

I'm new to zen-cart! I'm using 1.3.8 version.
I should to insert php code inside ez pages.
I tried to follow the istructions by thread linking

http://www.zen-cart.com/forum/showthread.php?t=37252&highlight=insert+php+EZpage

but seems that the new version of Zen-cart, proposed methodology does not work.
somebody has any suggestions for me?

Thanks!!!

28 Mar 2010, 2:18 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Php code insede ez pages of Zen Cart 1.3.8

Nothing has changed in Zen Cart that would prevent this approach. But since you've not shared any symptoms about how "does not work" looks, there's not much advice that can be offered.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

28 Mar 2010, 8:30 PM
#3
never11 avatar

never11

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: Php code insede ez pages of Zen Cart 1.3.8

ok!
Now I edit /includes/templates/template_default/templates/tpl_page_default.php

end remplace the line:
echo $var_pageDetails->fields['pages_html_text'];

with:

$titlecheck=substr($var_pageDetails->fields[pages_title],0,9);
if ($titlecheck=="miaPagina"){
eval(stripslashes($var_pageDetails->fields['pages_html_text']));}
else{echo $var_pageDetails->fields['pages_html_text']; }

I inserted in my EZ page titled miaPagina the follow code

<?php echo "hello world"; ?>

but when I try to connect at this page don't see anythig :(