Sha256: 2785174541449fd92c490ef7f8826e9257efd0c8cd26e18bb64c8c1c360072bf
Contents?: true
Size: 1.33 KB
Versions: 312
Compression:
Stored size: 1.33 KB
Contents
<p class="wrapper">Your Cart:</p> <ul> <% _.each(invoice.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.unit_price) * 100) / 100).toFixed(2) %></span></p> </aside> <section> <p>$<%= ((parseFloat(lineItem.subtotal) * 100) / 100).toFixed(2) %></p> </section> </div> </li> <% }); %> </ul> <p class="wrapper subtotal"><span>Subtotal:</span> <span>$<%= ((parseFloat(invoice.subtotal) * 100) / 100).toFixed(2) %></span></p> <% if (invoice.shipping > 0) { %> <p class="wrapper shipping"><span>Shipping & Handling:</span> <span>$<%= (((parseFloat(invoice.shipping) + parseFloat(invoice.handling)) * 100) / 100).toFixed(2) %></span></p> <% } %> <% if (invoice.tax > 0 && invoice.billing_address.state == 'AL') { %> <p class="wrapper tax"><span>Tax <small>(if in Alabama)</small>:</span> <span>$<%= parseFloat(Math.round(invoice.tax * 100) / 100).toFixed(2) %></span></p> <% } %> <p class="wrapper total"><span>Total:</span> <span>$<%= parseFloat(Math.round(invoice.total * 100) / 100).toFixed(2) %></span></p>
Version data entries
312 entries across 312 versions & 1 rubygems