silverstripe-webpack/app/templates/SilverShop/Page/Layout/CartPage.ss
2018-08-26 17:46:03 +07:00

38 lines
1.4 KiB
Scheme

<div class="page-content">
<div class="element cart-page">
<% include Content %>
<div class="container">
<% if $Cart %>
<% if $CartForm %>
$CartForm
<% else %>
<% with $Cart %><% include SilverShop\Cart\Cart Editable=true %><% end_with %>
<% end_if %>
<% else %>
<div class="alert alert-warning message warning"><%t SilverShop\Cart\ShoppingCart.NoItems "There are no items in your cart." %></div>
<% end_if %>
<div class="cart-footer">
<% if $ContinueLink %>
<a class="continuelink btn btn-primary" href="$ContinueLink">
<i class="fas fa-chevron-left"></i>
<%t SilverShop\Cart\ShoppingCart.ContinueShopping 'Continue Shopping' %>
</a>
<% end_if %>
<% if $Cart %>
<% if $CheckoutLink %>
<a class="checkoutlink btn btn-primary" href="$CheckoutLink">
<%t SilverShop\Cart\ShoppingCart.ProceedToCheckout 'Proceed to Checkout' %>
<i class="fas fa-chevron-right"></i>
</a>
<% end_if %>
<% end_if %>
</div>
</div>
</div>
</div>