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.82 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.81 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.80 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.79 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.78 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.77 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.76 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.75 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.74 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.73 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.72 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.71 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.70 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.69 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.68 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.67 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.66 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.64 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.63 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.5.62 app/assets/templates/caboose/checkout/line_items.jst.ejs