Sha256: 5543e3f9b6eed5be3d11e92c95248a3893bf9eabbd0ee6ebca61ebebee1ad7bc
Contents?: true
Size: 1 KB
Versions: 4
Compression:
Stored size: 1 KB
Contents
<!-- insert_after '#cart-form' --> <% if @product.parts.any?(&:in_stock?) %> <h6><%= t('spree.parts_included') %></h6> <ul id="products" class="inline product-listing" data-hook> <% @product.parts.each do |variant| %> <% if variant.in_stock? %> <li id="product_<%= variant.product.id %>" class="columns three <%= cycle("alpha", "secondary", "", "omega secondary") %>" data-hook="products_list_item" itemscope itemtype="http://schema.org/Product"> <div class="product-image"> <%= render 'spree/shared/image', image: variant.product.gallery.images.first, size: :small %> </div> <%= link_to truncate(variant.product.name, :length => 50), variant.product, :class => 'info', :itemprop => "name", :title => variant.product.name %> <% if variant.product.individual_sale? %> <span class="price selling" itemprop="price"><%= number_to_currency variant.price %></span> <% end %> </li> <% end %> <% end %> </ul> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems