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

Version Path
caboose-cms-0.5.122 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.121 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.120 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.119 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.118 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.117 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.116 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.115 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.114 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.113 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.112 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.111 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.110 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.109 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.108 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.107 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.106 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.105 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.104 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.103 app/assets/templates/caboose/checkout/line_items.jst.ejs