View Full Version : Custom Error Page for Miva Generated Errors
dreamingdigital
10-30-06, 06:57 PM
Is there a way I can create a custom error page to replace Miva generated one. I have a custom 404 error page in my .htaccess file I'd like to use for those as well.
dotCOM_host
10-30-06, 09:06 PM
That won't work, as MIVA doesn't use Apache for generating its error pages - it uses its own MIVA Empresa. There used to be a module for MM v4 for managing and editing your custom error pages generated by the store, but I don't think that's been updated to v5. If my memory serves me correctly, though, I believe someone already came up with an alternate way of changing the default error pages in MM5, though I can't locate the source at the moment... maybe someone else will chime in with more details...
lfreeman
10-31-06, 12:02 AM
I have this in my notes for messages:
http://www.mvwiki.com/w/Customizing_Error_and_Information_Message
and this for the product page not found errors:
INACTIVE PRODUCT FATAL ERROR SCREEN
In the product display template (PROD) > Product Display Layout...
I added this line of code at the top (if using default template, make sure it's above the starting <table>) & be sure to end the template with a </mvt:if>:
HTML Code:
<mvt:if expr="l.settings:product:active EQ 0">
The item you are looking for is no longer in stock. Please check back at a later time or call us toll free at 1-888-123-1234 for more information. *Or put whatever the heck information you want here...
<mvt:else>
**put the default code starting with <table> here **
</mvt:if>
OR
http://extranet.miva.com/forums/showthread.php?p=14204
Set the first line of the template to:
<mvt:if expr="NOT ISNULL l.settings:product:code">
Add this to the very end of the template. You can customize the error text.
<mvt:else>
Sorry, this product is no longer available.
</mvt:if>
dreamingdigital
10-31-06, 12:55 AM
I don't know if it's because I'm using Sebenza Product Page & Category Page Templates but it the code works well. I incorporated it into my ADS external file pro module to display my ERROR404 content from my ERROR404 page. We made that page actually helpful. Anywho this works well. Thanks for the help!!
<mvt:if expr="NOT ISNULL l.settings:product:code">
Display Normal Text
<mvt:else>
Display Error Text
</mvt:if>
Next on my wish list is those nasty Miva errors that happen when you delete something from your Basket then refresh the page. That kind of error. I guess a module will come out eventually.
CP
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.