<% if item.variant.images.length == 0 %>
<%= small_image(item.variant.product) %>
<% else %>
<%= image_tag item.variant.images.first.attachment.url(:small) %>
<% end %>
|
<%= item.variant.product.name %>
<%= truncate(item.variant.product.description, :length => 100, :omission => "...") %>
<%= "(" + variant_options(item.variant) + ")" unless item.variant .option_values.empty? %>
|
<%= number_to_currency item.price %> |
<%= item.quantity %> |
<%= number_to_currency (item.price * item.quantity) %> |
<% end %>