Skip to content
Permalink
Browse files

front-end: basket: add 'loading' message

  • Loading branch information...
alban committed Aug 7, 2016
1 parent acfac20 commit 15e96eb07d9a42149d28ed3814bd8be9b7721c0a
Showing with 11 additions and 4 deletions.
  1. +11 −4 sockshop/front-end/basket.html
@@ -77,6 +77,11 @@ <h1>Shopping cart</h1>
</tr>
</thead>
<tbody id="cart-list">
<tr>
<td colspan="1"></td>
<td colspan="6" id="cart-list-loading">Loading...</td>
</tr>

</tbody>
<tfoot>
<tr>
@@ -138,19 +143,19 @@ <h3>Order summary</h3>
<tbody>
<tr>
<td>Order subtotal</td>
<th id="orderSubtotal">$0.00</th>
<th id="orderSubtotal">...</th>
</tr>
<tr>
<td>Shipping and handling</td>
<th id="orderShipping">$0.00</th>
<th id="orderShipping">...</th>
</tr>
<tr>
<td>Tax</td>
<th id="orderTax">$0.00</th>
<th id="orderTax">...</th>
</tr>
<tr class="total">
<td>Total</td>
<th id="orderGrandTotal">$0.00</th>
<th id="orderGrandTotal">...</th>
</tr>
</tbody>
</table>
@@ -279,7 +284,9 @@ <h4>Coupon code</h4>
$('#cartTotal').text('$' + cartTotal.toFixed(2));
$('#orderSubtotal').text('$' + cartTotal.toFixed(2));
$('#orderShipping').text('$' + shipping.toFixed(2));
$('#orderTax').text('$0.00');
$('#orderGrandTotal').text('$' + (cartTotal + shipping).toFixed(2));
$('#cart-list-loading').text('');
});
}
});

0 comments on commit 15e96eb

Please sign in to comment.
You can’t perform that action at this time.