New Zenner
- Join Date:
- Mar 2009
- Posts:
- 78
- Plugin Contributions:
- 0
PHP inside ezpages
Hello All,
I have been trying very hard to get this to work and could use some help. I have created a price list that draws from the database and want to make it so that users have to log in to see it. I have taken the steps below to make this work. I have described the results at the end. Any help would be appreciated.
-
I copied includes/templates/template_default/templates/tpl_page_default.php to includes/templates/my template/templates/
-
I modified the code in tpl_page_default.php to the following:
-
I created a new Ez page called “Print” and a new page called “priceList_ezInclude.php”.
-
I inserted the following code into the Print ez page via the html box.
<php?
include (" http://www.blackoliveeastnursery.net/zenCart_boe/priceManager/priceList_ezInclude.php");
?>
<a href="http://www/zen-cart.com">Get Zenned</a>
- I actived the “Page is SSL” button in the Admin > Tools > ez pages page for the Print ez page.
RESULT:
When I click on the “Print” link in the sidebox, I am sent to the Login page. After I log in, I am taken to the Print page, but the included page does not appear. All that is there is the include code below:
Print
<php?
include
(" http://www.blackoliveeastnursery.net/zenCart_boe/priceManager/priceList_ezInclude.php"); ?>
<a href="http://www/zen-cart.com">Get Zenned</a>
I have verified that the link to the included file is working, so that is not the problem. Any help would be appreciated.