PDA

View Full Version : Custom Error screens and logging


Barrett
07-26-08, 07:33 PM
Any solution for Custom Error screens and logging under v5.xx ?

Sebenza used to make a mod for this and has not updated for 5.xx stores.

wcw
07-26-08, 08:10 PM
You can trap most errors using store morph code on just about any store. Did you have a particular error you want to get a handle on?

Barrett
07-27-08, 03:09 AM
You can trap most errors using store morph code on just about any store. Did you have a particular error you want to get a handle on?

I guess said accurately would be any 404 not founds on the merchant side at least where it would pull a custom page and the caller; person or bot, would never see a 404 plus then log the called url for tracking.

wcw
07-27-08, 03:24 AM
You don't get a 404 page when you hit an error in merchant. You sometimes get those error message boxes Merchant throws up. But you can work around most of them.

For example, try this link:
http://www.pinemporium.com/mm5/merchant.mvc?Screen=PROD&Product_Code=ASDF

This is done with 4 lines of code in the product layout tab of the PROD page template. I also added a tool kit line which saves the product code and a couple bits of data about the originator of the error.


<mvt:if expr="ISNULL l.settings:product:code">
Product has been removed from our catalog
<mvt:item name="toolkit" param="export|product_error.dat^|^g.Product_Code,remote_a ddr,http_referer" />
<mvt:exit>
</mvt:if>

Barrett
07-27-08, 06:25 PM
See also this thread

http://extranet.miva.com/forums/showthread.php?p=77823