Move the "Total" div out of the for loop so it only appears once in the cart
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
<section class="esh-basket-title col-xs-2">Cost</section>
|
<section class="esh-basket-title col-xs-2">Cost</section>
|
||||||
</article>
|
</article>
|
||||||
<div class="esh-catalog-items row">
|
<div class="esh-catalog-items row">
|
||||||
@for (int i=0; i< Model.BasketModel.Items.Count; i++)
|
@for (int i = 0; i < Model.BasketModel.Items.Count; i++)
|
||||||
{
|
{
|
||||||
var item = Model.BasketModel.Items[i];
|
var item = Model.BasketModel.Items[i];
|
||||||
<article class="esh-basket-items row">
|
<article class="esh-basket-items row">
|
||||||
@@ -44,31 +44,35 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
@*<div class="esh-catalog-item col-md-4">
|
@*<div class="esh-catalog-item col-md-4">
|
||||||
@item.ProductId
|
@item.ProductId
|
||||||
</div>*@
|
</div>*@
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<article class="esh-basket-titles esh-basket-titles--clean row">
|
|
||||||
<section class="esh-basket-title col-xs-10"></section>
|
|
||||||
<section class="esh-basket-title col-xs-2">Total</section>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<article class="esh-basket-items row">
|
|
||||||
<section class="esh-basket-item col-xs-10"></section>
|
|
||||||
<section class="esh-basket-item esh-basket-item--mark col-xs-2">$ @Model.BasketModel.Total()</section>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<article class="esh-basket-items row">
|
|
||||||
<section class="esh-basket-item col-xs-7"></section>
|
|
||||||
<section class="esh-basket-item col-xs-2">
|
|
||||||
@*<button class="btn esh-basket-checkout" name="name" value="" type="submit">[ Update ]</button>*@
|
|
||||||
</section>
|
|
||||||
</article>
|
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<article class="esh-basket-titles esh-basket-titles--clean row">
|
||||||
|
<section class="esh-basket-title col-xs-10"></section>
|
||||||
|
<section class="esh-basket-title col-xs-2">Total</section>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="esh-basket-items row">
|
||||||
|
<section class="esh-basket-item col-xs-10"></section>
|
||||||
|
<section class="esh-basket-item esh-basket-item--mark col-xs-2">$ @Model.BasketModel.Total()</section>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="esh-basket-items row">
|
||||||
|
<section class="esh-basket-item col-xs-7"></section>
|
||||||
|
<section class="esh-basket-item col-xs-2">
|
||||||
|
@*<button class="btn esh-basket-checkout" name="name" value="" type="submit">[ Update ]</button>*@
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="esh-basket-item col-xs-push-8 col-xs-4">
|
<section class="esh-basket-item col-xs-push-8 col-xs-4">
|
||||||
<button class="btn esh-basket-checkout" name="updatebutton" value="" type="submit"
|
<button class="btn esh-basket-checkout" name="updatebutton" value="" type="submit"
|
||||||
asp-page-handler="Update">[ Update ]</button>
|
asp-page-handler="Update">
|
||||||
|
[ Update ]
|
||||||
|
</button>
|
||||||
<input type="submit" asp-page="Checkout"
|
<input type="submit" asp-page="Checkout"
|
||||||
class="btn esh-basket-checkout"
|
class="btn esh-basket-checkout"
|
||||||
value="[ Checkout ]" name="action" />
|
value="[ Checkout ]" name="action" />
|
||||||
|
|||||||
Reference in New Issue
Block a user