Sha256: 225c1958043587e9b2db6e4d09dd0dbc4caecb0c31b692e05d44a98b9f6ea4bf

Contents?: true

Size: 1.57 KB

Versions: 3

Compression:

Stored size: 1.57 KB

Contents

<% cache cart.cart_items do %>
  <div class="table-responsive">
    <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th>Product</th>
          <th>SKU</th>
          <th>Options</th>
          <th>Customizations</th>
          <th>Quantity</th>
          <th>Price</th>
        </tr>
      </thead>
      <tbody>
        <% cart.cart_items.each do |cart_item| %>
          <tr class="tb-checkout-cart-row">
            <td>
              <%= link_to cart_item.product_sku.product.title, tb_commerce_category_product_path(cart_item.product_sku.product.category.slug, cart_item.product_sku.product.slug) %>
            </td>
            <td><%= cart_item.product_sku.sku %></td>
            <td>
              <% cart_item.product_sku.options.each do |option| %>
                <strong><%= option.label %>:</strong> <%= option.value %><br/>
              <% end %>
            </td>
            <td>
              <% cart_item.configuration.each do |key, val| %>
                <% if val.present? %>
                  <strong><%= key %>:</strong> <%= val %><br/>
                <% end %>
              <% end %>
            </td>
            <td>
              <%= cart_item.quantity %>
            </td>
            <td><%= number_to_currency cart_item.total_price %></td>
          </tr>
        <% end %>
      </tbody>
      <tfoot>
        <tr>
          <td colspan="5" align="right">
            <strong>Total</strong>
          </td>
          <td><%= number_to_currency cart.total_price %></td>
        </tr>
      </tfoot>
    </table>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 app/views/tb_commerce/admin/orders/_cart.html.erb
tb_commerce-0.0.3 app/views/tb_commerce/admin/orders/_cart.html.erb
tb_commerce-0.0.2 app/views/tb_commerce/admin/orders/_cart.html.erb