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.
1. I copied includes/templates/template_default/templates/tpl_page_default.php to includes/templates/*my template*/templates/
2. I modified the code in tpl_page_default.php to the following:
<div><?php echo $titlecheck=substr($var_pageDetails->fields[pages_title],0,5);
if ($titlecheck=="Print"){
eval(stripslashes('?>' . $var_pageDetails->fields['pages_html_text'])); }
else{echo $var_pageDetails->fields['pages_html_text']; }?></div>
3. I created a new Ez page called “Print” and a new page called “priceList_ezInclude.php”.
4. 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>
5. 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:
<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.
Bookmarks