Sha256: 3ec9d80cba5eefaadad18ffcc4ae5e22288595c5d4b96961b25a5b2c9e081d98

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

<tr class="<%= cycle('', 'alt') %>">
  <td data-hook="cart_item_image">
    <% if variant.images.length == 0 %>
      <%= small_image(variant.product) %>
    <% else %>
      <%= image_tag variant.images.first.attachment.url(:small) %>
    <% end %>
  </td>
  <td data-hook="cart_item_description">
    <h4><%= link_to variant.product.name, product_path(variant.product) %></h4>
    <%= variant.options_text %>
    <% if @order.insufficient_stock_lines.include? line_item %>
      <span class="out-of-stock">
        <%= variant.in_stock? ? t(:insufficient_stock, :on_hand => variant.on_hand) : t(:out_of_stock) %><br />
      </span>
    <% end %>
    <%= truncate(variant.product.description, :length => 100, :omission => "...") %>
  </td>
  <td data-hook="cart_item_price">
    <%= product_price(line_item.variant) %>
  </td>
  <td data-hook="cart_item_quantity">
    <%= item_form.text_field :quantity, :size => 3, :class => "line_item_quantity" %>
  </td>
  <td data-hook="cart_item_total">
    <%= format_price(product_price(line_item.variant, :format_as_currency => false) * line_item.quantity) unless line_item.quantity.nil? %>
  </td>
  <td data-hook="cart_item_delete">
    <%= link_to image_tag('icons/delete.png'), '#', :class => 'delete', :id => "delete_#{dom_id(line_item)}" %>
  </td>
</tr>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/views/orders/_line_item.html.erb
spree_core-0.70.6 app/views/orders/_line_item.html.erb
spree_core-0.70.5 app/views/orders/_line_item.html.erb
spree_core-0.70.4 app/views/orders/_line_item.html.erb
spree_core-0.70.3 app/views/orders/_line_item.html.erb
spree_core-0.70.2 app/views/orders/_line_item.html.erb
spree_core-0.70.1 app/views/orders/_line_item.html.erb
spree_core-0.70.0 app/views/orders/_line_item.html.erb