View Single Post
  #59  
Old 01-17-2005, 03:07 PM
  shishapipe's Avatar 
shishapipe shishapipe is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: London
Posts: 47
 

Default

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%"}
__________________
Regards Maxking

SERVER: Microsoft-IIS/5.0
MYSQL Server: 4.0.18-NT
PERL: 5.006001
PHP: 4.3.6
X-CART pro: 4.3
X-AOM: 4..3
X-RMA: 4..3X-FancyCategories 4.3
Skin: Own Design
Marketing Manager Professional 3.0 Bundle
Reply With Quote