Thread: Newest Products
View Single Post
  #107  
Old 11-06-2005, 09:41 AM
 
lapidarist lapidarist is offline
 

Advanced Member
  
Join Date: Apr 2003
Location: Hot Springs, Arkansas
Posts: 34
 

Default

Quote:
Originally Posted by Amy
not quite sure why but my entire page is actually coming up but nothing within the page itself.

Page not found!
The requested page does not exist or you are not allowed to access it!

http://scrapbookbytes.com/store/newproducts.php


The "Page not found!" comes normally comes from the home_main.tpl file not having the following:


Code:
{elseif $main eq "newproducts"} {include file="customer/main/newproducts.tpl"}

This has to be before the end of the file that says
Code:
{else} {include file="common_templates.tpl"} {/if}

The $main variable to set to "newproducts" in the newproducts.php file. If The {elseif} code shown above is not in home_main.tpl or you change the word "newproducts" to something else and didn't do the same in the .php file, you will get the page not found error because the code will fall through to the last statement that basically has it display the page not found page (in this case). Here is the bottom section of my <xcart_dir>/skin1/customer/home_main.tpl

Quote:

{elseif $main eq "newproducts"}
{include file="customer/main/newproducts.tpl"}

{else}
{include file="common_templates.tpl"}
{/if}

If you can't get it to work. Post your skin1/customer/home_main.tpl file. That is the best place to start looking. Because I can reproduce the error by taking out the {elseif} addition or changing the word (example. newproducts to newadditions)

James
__________________
X-Cart Gold Plus 4.5.4
X-PDF 4.5.3
X-Payments 1.05
CDSEO Pro 1.8.7
WebsiteCM Product Map 2.0.1
WebsiteCM Next-Prev 1.3 disabled because of SQL errors and bugs.
Reply With Quote