Sha256: 4ec1e12d125fa525b6e6c37ce7a6d197c66639a0c4743bee9e5d3c8f5a615926
Contents?: true
Size: 1.31 KB
Versions: 150
Compression:
Stored size: 1.31 KB
Contents
<p class="wrapper">Your Cart:</p> <ul> <% _.each(order.line_items, function(lineItem) { %> <li data-id="<%= lineItem.id %>"> <div class="wrapper"> <aside> <figure style="background-image: url(<%= lineItem.variant.images[0].urls.thumb %>)"></figure> <p><%= lineItem.title %><br />Qty: <%= lineItem.quantity %><br /><span class="price">$<%= ((parseFloat(lineItem.price) * 100) / 100).toFixed(2) %></span></p> </aside> <section> <p>$<%= ((parseFloat(lineItem.price) * 100) / 100).toFixed(2) %></p> </section> </div> </li> <% }); %> </ul> <p class="wrapper subtotal"><span>Subtotal:</span> <span>$<%= ((parseFloat(order.subtotal) * 100) / 100).toFixed(2) %></span></p> <% if (order.shipping > 0) { %> <p class="wrapper shipping"><span>Shipping & Handling:</span> <span>$<%= (((parseFloat(order.shipping) + parseFloat(order.handling)) * 100) / 100).toFixed(2) %></span></p> <% } %> <% if (order.tax > 0 && order.billing_address.state == 'AL') { %> <p class="wrapper tax"><span>Tax <small>(if in Alabama)</small>:</span> <span>$<%= parseFloat(Math.round(order.tax * 100) / 100).toFixed(2) %></span></p> <% } %> <p class="wrapper total"><span>Total:</span> <span>$<%= parseFloat(Math.round(order.total * 100) / 100).toFixed(2) %></span></p>
Version data entries
150 entries across 150 versions & 2 rubygems