|
Sweetness Follows – Order
Transaction Completed Successfully (cont'd)
Page 21 of 22 - Chapter
14
The
NewMail object is a use once and throw away object. If we want to send another
e-mail we must create a new NewMail object.
loEMailer =
Server.CreateObject("CDONTS.Newmail");
// Email order person
loEMailer.Send("NewOrder@MusicmMad.com",
"shipping@MusicMadOnline.com", "New Order",
sOrderDeptEmail);
// Email Customer
var loEMailer = Server.CreateObject("CDONTS.Newmail");
loEMailer.Send("Orders@MusicMadOnline.com",
sEmail, _
"Your order with MusicMadOnline.com", sCustEmail);
%>
<HTML> |
Finally,
lets create the page text itself confirming the order transaction's success.
<HEAD>
<TITLE>Order Successful</TITLE>
</HEAD>
<BODY>
<DIV ALIGN="center">
<FONT FACE="Comic Sans MS" SIZE="5"
color="Navy">
Your order was successful
</FONT>
<FONT FACE="Comic Sans MS" SIZE="3"
color="BLACK">
<P>
Your goods will be sent
to you shortly.
Confirmation of your
order items have been e-mailed to you
</P>
</FONT>
<FONT FACE="Comic Sans MS" SIZE="4"
color="#FF8040">
<P>
Thank you for shopping
with MusicMadOnline.com
</P>
</FONT>
<FORM ACTION="" METHOD="POST">
<INPUT TYPE="Button"
NAME="cmdGoShop" VALUE="Contine Shopping"
onClick="window.location.replace('home.asp');">
</FORM>
</DIV>
</BODY>
</HTML> |
Save
the page as AcceptOrder.asp.
Online Store Complete
Congratulations
you've made it to the end! Hopefully along the way you have learned the basic
techniques for an online store. Now you can take it further and improve on the
foundations laid.
One
of the most useful additions would be a customer log-in facility, which would
save database space for you and the hassle of retyping their details for the
customer. It also provides the opportunity to find out more about your customers
and perhaps keep them informed of updates to the web site or new product lines.
You
may also decide that with 70% of people browsing with a version 4+ browser that
you can afford to rewrite this in JavaScript 1.2 and make use of some of the
advanced features that offers, particularly in string manipulation.
Taking
things further with a component written in Java, C++ or Visual Basic you could
implement full credit card checking, such as verifying account details and
obtaining authorization.
|