Sha256: f5e20fdc90a7734c8b4545453b4c7c9894f14e1ec48fa183e2d734aea8858aba
Contents?: true
Size: 1.32 KB
Versions: 234
Compression:
Stored size: 1.32 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.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(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
234 entries across 234 versions & 1 rubygems