SO-Will
05-25-06, 01:49 AM
If a customer stumbles across one of your pages that is marked 'inactive', they are encountered with a very ugly fatal error screen like:
Fatal Error
Miva Merchant has encountered a fatal error and is unable to continue. The following information may assist you in determining the cause of the error:
Error Code: MER-DTB-00371 Description: Product '####' not found
For those dying to redesign this page and keep customers around, I stumbled upon this awesome variable: l.settings:product:active
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>:
<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>
Click update, make one of your products inactive, and try viewing that page.
By default, all products are active, which is marked '1'. This is saying that if the product is equal to '0' (inactive), please display this line of code. Else, it will display another line of code.
Hope this helps all Miva-maniacs as I continue to learn this stuff. Enjoy!
Fatal Error
Miva Merchant has encountered a fatal error and is unable to continue. The following information may assist you in determining the cause of the error:
Error Code: MER-DTB-00371 Description: Product '####' not found
For those dying to redesign this page and keep customers around, I stumbled upon this awesome variable: l.settings:product:active
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>:
<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>
Click update, make one of your products inactive, and try viewing that page.
By default, all products are active, which is marked '1'. This is saying that if the product is equal to '0' (inactive), please display this line of code. Else, it will display another line of code.
Hope this helps all Miva-maniacs as I continue to learn this stuff. Enjoy!