Making Your Not Found Page More Useful (NTFD)
When Miva Merchant 5.5 Production Release 6 was released back on July 28, 2009, there were numerous updates and changes. One of the new items added was a page called NTFD (Not Found). From the release announcement, “The software now routes requests for pages, products, or categories that do not exist to this page.”
By default, the page takes on whatever your site’s basic styling is and will relate the following messages based on the request that was made:
- Page: Page ‘xx’ no longer exists.
- Category: Category ‘xx’ is not available at this time.
- Product: Product ‘xx’ is not available at this time.
Now this is all fine, it tells that what I had a link for is no longer available. But what do I do now? If it was a link for a product, are there any replacements or suggestions for it? It would be great to have a little guidance in this area. This is where some creative IF statements come in handy. Use the code below to replace the default NTFD page code and turn your response messages into something more useful like…
We’re sorry but it appears that the “xx” page is not available at this time.
Please click here to return to our home page.
We’re sorry but it appears that the “xx” category is not available at this time.
Please check our Site Map or click here to return to our home page.
We’re sorry but it appears that product “xx” is not available at this time.
Please check our Product Index or perform a Search to find a similar product.
* For best results, if a product has been made inactive or removed from the store, make a note of this in a product that has superseded it to help the search function.
Below you will find the code to do this; simply copy & paste into the NTFD page template:
Until next time, happy coding.
Miva Merchant Blog Making Your Not Found Page More Useful (NTFD)