9.3.2 Adding the Checkout Process; Listing 9-11 The Contents of the Checkout.cshtml File
parent
5eb2302b52
commit
4090de140a
|
@ -155,6 +155,7 @@
|
|||
<Content Include="Views\Nav\Menu.cshtml" />
|
||||
<Content Include="Views\Cart\Index.cshtml" />
|
||||
<Content Include="Views\Cart\Summary.cshtml" />
|
||||
<Content Include="Views\Cart\Checkout.cshtml" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
@model SportsStore.Domain.Entities.ShippingDetails
|
||||
|
||||
@{
|
||||
ViewBag.Title = "SportStore: Checkout";
|
||||
}
|
||||
|
||||
<h2>Check out now</h2>
|
||||
<p>Please enter your details, and we'll ship your goods right now</p>
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
|
||||
<h3>Ship to</h3>
|
||||
<div class="form-group">
|
||||
<label>Name:</label>
|
||||
@Html.TextBoxFor(x => x.Name, new { @class = "form-control" })
|
||||
</div>
|
||||
|
||||
<h3>Address</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Line 1:</label>
|
||||
@Html.TextBoxFor(x => x.Line1, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Line 2:</label>
|
||||
@Html.TextBoxFor(x => x.Line2, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Line 3:</label>
|
||||
@Html.TextBoxFor(x => x.Line3, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>City:</label>
|
||||
@Html.TextBoxFor(x => x.City, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>State:</label>
|
||||
@Html.TextBoxFor(x => x.State, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Zip:</label>
|
||||
@Html.TextBoxFor(x => x.Zip, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Country:</label>
|
||||
@Html.TextBoxFor(x => x.Country, new { @class = "form-control" })
|
||||
</div>
|
||||
|
||||
<h3>Options</h3>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
@Html.EditorFor(x => x.GiftWrap)
|
||||
Gift wrap these items
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<input class="btn btn-primary" type="submit" value="Complete order" />
|
||||
</div>
|
||||
}
|
Loading…
Reference in New Issue