Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Location
    Oregon
    Posts
    57
    Plugin Contributions
    0

    Default PHP inside EZpages

    Is there a way I can have a php page in EZpages and have it wrapped by zencart? I have tried using both internal and external pages and in both cases, it opens the php application without wrapping it with the typical zencart wrapping.

    The text editor doesn't allow for pasting the PHP code.

    I am using 1.3.8
    The Hookah Store www.TheHookahStore.com

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: PHP inside EZpages


  3. #3
    Join Date
    Oct 2008
    Location
    Oregon
    Posts
    57
    Plugin Contributions
    0

    Default Re: PHP inside EZpages

    That is for version 1.3.0 and I have 1.3.8. and never worked for me. I did find a way to put in an IF in the code saying if the page_id == {my page id} then include my php else do what was already there and it works but.... The page footer is missing. Everything below my include is missing.

    My ezpage ID is 9, so in my copy of tpl_page_default.php on about line 57 I did this...


    Code:
         
        <div>
        <?php
          if( $var_pageDetails->fields['pages_id'] == 9 ){
            include('lounge_directory.php');    
          } else {
            echo $var_pageDetails->fields['pages_html_text'];
          }
        ?> 
        </div>
    The page can be found at
    www.thehookahstore.com/index.php?main_page=page&id=9

    Quote Originally Posted by misty View Post
    The Hookah Store www.TheHookahStore.com

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: PHP inside EZpages

    That is for version 1.3.0 and I have 1.3.8.
    Did you read WHOLE thread...

 

 

Similar Threads

  1. PHP inside EZ-Pages
    By digiprint in forum General Questions
    Replies: 0
    Last Post: 17 Jun 2013, 09:10 AM
  2. PHP code inside of an EZ page
    By tcarden in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Dec 2012, 05:19 PM
  3. PHP inside ezpages
    By TecBrat in forum General Questions
    Replies: 113
    Last Post: 29 Nov 2012, 04:55 PM
  4. search inside php files
    By papadopoulos in forum General Questions
    Replies: 2
    Last Post: 20 Jun 2006, 02:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR