Here is the NEW X-Cart 4.09 shopcart/skin1/modules/stock_notify/stocknotify.tpl file
This sends a responce (addtolist.tpl - {$lng.txt_added_stock_notify}) to a guest once the email address has been entered correctly and also a responce (addtolist.tpl - {$lng.txt_added_stock_notify}) to a login user.
stocknotify.tpl
Code:
{* stocknotify.tpl funkydunk.net 2003 - changed by Maxking *}
{capture name=dialog}
{* OK CUSTOMER IS LOGGED IN, JUST GO TO THE STOCK NOTIFY TEXT *}
{if ($login ne "") or ($guestlogged ne "")}
{include file="modules/stock_notify/addedtolist.tpl"}
{else}
{* OK NOT LOGGED IN, SO GET THERE EMAIL ADDRESS *}
{include file="check_email_script.tpl"}
{include file="check_required_fields_js.tpl"}
{$lng.txt_addme_notify}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
var requiredFields = new Array();
requiredFields[0] = new Array('guestemail', "{$lng.lbl_send_your_email|strip_tags|replace:'"':'\"'}", false);
</SCRIPT>
<TABLE border="0">
<FORM action="notify.php" method="post" name="notify">
<INPUT type="hidden" name="mode" value="notify">
<INPUT type="hidden" name="productid" value="{$productid}">
<TR><TD class="FormButton">{$lng.lbl_send_your_email}:</TD>
<TD><FONT class="Star">*</FONT></TD>
<TD><INPUT value"Enter Your Email" id="guestemail" type="text" size="45" name="guestemail" onchange="javascript: checkEmailAddress(this);"></TD>
</TR>
<TR><TD colspan="3">
{include file="buttons/submit.tpl" style="button" button_title=$lng.lbl_stock_notify_button href="javascript: if(checkRequired('')) document.notify.submit();"}</TD>
</TR>
{/if}
</FORM>
</TABLE>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_stock_notify content=$smarty.capture.dialog extra="width=100%"}