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

Version Path
caboose-cms-0.7.85 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.84 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.83 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.82 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.81 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.80 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.79 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.78 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.77 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.76 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.75 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.74 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.73 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.72 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.71 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.70 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.69 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.68 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.67 app/assets/templates/caboose/checkout/line_items.jst.ejs
caboose-cms-0.7.66 app/assets/templates/caboose/checkout/line_items.jst.ejs