Sha256: 1d5199350a25a9c561f8e1e86ba93de95193811663e130ebb7c274cd5d845c4f
Contents?: true
Size: 1.9 KB
Versions: 4
Compression:
Stored size: 1.9 KB
Contents
<% if order.line_items.assemblies.any? %> <fieldset class="no-border-bottom"> <legend align="center" class="" data-hook=""> <%= t('spree.product_bundles') %> </legend> </fieldset> <table class="product-bundles index" data-hook="line-items"> <colgroup> <col style="width: 15%;" /> <col style="width: 40%;" /> <col style="width: 15%;" /> <col style="width: 15%;" /> <col style="width: 15%;" /> </colgroup> <thead> <tr> <th colspan="2"><%= Spree::Product.human_attribute_name(:name) %></th> <th><%= Spree::LineItem.human_attribute_name(:price) %></th> <th><%= Spree::LineItem.human_attribute_name(:quantity) %></th> <th><%= Spree::LineItem.human_attribute_name(:total) %></th> </tr> </thead> <tbody> <% order.line_items.assemblies.each do |item| %> <%= content_tag :tr, class: 'line-item', id: "line-item-#{item.id}", data: { line_item_id: item.id } do %> <td class="line-item-image"><%= render 'spree/shared/image', image: (item.variant.gallery.images.first || item.variant.product.gallery.images.first), size: :mini %></td> <td class="line-item-name"> <%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %> <% if item.variant.sku.present? %> <strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong> <%= item.variant.sku %> <% end %> </td> <td class="line-item-price align-center"><%= item.single_money.to_html %></td> <td class="line-item-qty-show align-center"> <%= item.quantity %> </td> <td class="line-item-total align-center"><%= line_item_shipment_price(item, item.quantity) %></td> <% end %> <% end %> </tbody> </table> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems