Ok Ive spent the past hr updating my site and there are two things I cannot get done:
1) I want to eliminate the some contact fields in the contact list. I went to the contactus.tpl and delete some stuff....I tested it out and is says "email address is not vaild" but I swear, I never touched the email code in the contactus.tpl! Here is the code for it:
Code:
{* $Id: contactus.tpl,v 1.15 2002/09/12 10:25:45 verbic Exp $ *}
{literal}
<script>
function checkEmailAddress(field) {
var goodEmail = field.value.match(/b(^(S+@).+((.com)|(.net)|(.edu)|(.mil)|(.gov)|(.org)|(..{2,2}))$)b/gi);
if (goodEmail) {
return true;
} else {
alert("E-mail address is invalid! Please correct");
field.focus();
field.select();
return false;
}
}
</script>
{/literal}
{if $smarty.get.mode eq "update"}
{$lng.txt_contact_us_header}
{/if}
{capture name=dialog}
{if $smarty.get.mode eq "update"}
<table width=100% border=0 cellspacing=0 cellpadding=2>
<form action="help.php?section=contactus&mode=update&action=contactus" method=post name=registerform>
<tr valign=middle>
<td class="TableCenterCustomerForm">{$lng.lbl_title}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<select name=title>
{section name=title loop=$name_titles}
<option {if $userinfo.title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option>
{/section}
</select>
</td>
</tr>
<tr valign=middle>
<td class="TableCenterCustomerForm">{$lng.lbl_first_name}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<input type=text name=firstname size=32 maxlength=32 value="{$userinfo.firstname}">
{if $fillerror ne "" and $userinfo.firstname eq ""}<font class=StarStyle><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td class="TableCenterCustomerForm">{$lng.lbl_last_name}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<input type=text name=lastname size=32 maxlength=32 value="{$userinfo.lastname}">
{if $fillerror ne "" and $userinfo.lastname eq ""}<font class=StarStyle><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td class="TableCenterCustomerForm">{$lng.lbl_email}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<input type=text name=email size=32 maxlength=128 value="{$userinfo.email}">
{if $fillerror ne "" and $userinfo.email eq ""}<font class=StarStyle><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td class="TableCenterCustomerForm">{$lng.lbl_subject}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<input type=text name=subject size=32 maxlength=128 value="{$userinfo.subject}">
{if $fillerror ne "" and $userinfo.subject eq ""}<font class=StarStyle><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td class="TableCenterCustomerForm">{$lng.lbl_message}</td>
<td><font class=StarStyle>*</font></td>
<td nowrap>
<textarea cols=48 rows=12 name=body>{$userinfo.body}</textarea>
{if $fillerror ne "" and $userinfo.body eq ""}<font class=StarStyle><<</font>{/if}
</td>
</tr>
<tr valign=middle>
<td></td>
<td></td>
<td nowrap>
{include file="buttons/submit.tpl"}
</td>
</tr>
<input type=hidden name=usertype value="{$usertype}">
</form>
</table>
{else}
{$lng.txt_contact_us_sent}
{/if}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_contact_us content=$smarty.capture.dialog extra="width=100%"}
2) when placing an order, the email comes back as:
Quote:
This is order 1 notification. Order id: #1 Order date: 27.10.2002 20:28 Order status: Q Customer info: --------------------- Username: anonymous6 First Name: John Last Name: Smith Billing Address: ---------------- Address: 12 asdasd City: asdad State: AB Country: UY Zip code: adasdsad Shipping Address: ----------------- Address: 12 asdasd City: asdad State: AB Country: UY Zip code: adasdsad Phone: 123123 Fax: Fax: shammy@yahoo.com URL: Credit card information: ------------------------ Customer Notes : Products ordered: ----------------- SKU: 1152034573 Product: Glam Chic Punk Plaid Jacket Quantity: 1 Item price: $ 55.00 Total: ------- Payment method: International Money Order Delivery: Canada Post International Subtotal: $ 55.00 Discount: $ 0.00 Coupon saving: $ 0.00 () Shipping cost: $ 14.50 Tax: $ 0.00 Total: $ 69.50 -- Thank you for shopping at Glamour-Hut.com! Phone: (455) 456-4554
URL: http://www.xxx.xxx
|
all in one big paragraph - how do I organize it?
Thanks so much - Im almost done! yah!