Sha256: 9c2749b1ed15aa4eef90236704fae287bcdb5e29382d626a24d04c24571dd8e6

Contents?: true

Size: 1.2 KB

Versions: 30

Compression:

Stored size: 1.2 KB

Contents

<% url = spree.product_path(product, taxon_id: taxon.try(:id)) %>
<div id="product_<%= product.id %>" class="col-md-3 col-sm-6 col-xs-6 product-list-item" data-hook="products_list_item" itemscope itemtype="https://schema.org/Product">
  <div class="panel panel-default">
    <% cache(taxon.present? ? [I18n.locale, current_currency, taxon, product] : cache_key_for_product(product)) do %>
      <div class="panel-body text-center product-body">
        <%= link_to url, itemprop: "url" do %>
          <%= small_image(product, itemprop: "image") %><br/>
          <%= content_tag(:span, truncate(product.name, length: 50), class: 'info', itemprop: "name", title: product.name) %>
        <% end %>
        <br/>
      </div>
      <div class="panel-footer text-center">
        <span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
          <span class="price selling lead" itemprop="price" content="<%= (product.price_in(current_currency).amount.nil?)? 0 : product.price_in(current_currency).amount.to_d %>">
            <%= display_price(product) %>
          </span>
          <span itemprop="priceCurrency" content="<%= current_currency %>"></span>
        </span>
      </div>
    <% end %>
  </div>
</div>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
spree_frontend-3.7.14.1 app/views/spree/products/_product.html.erb
spree_frontend-3.7.14 app/views/spree/products/_product.html.erb
spree_frontend-3.7.13 app/views/spree/products/_product.html.erb
spree_frontend-3.7.12 app/views/spree/products/_product.html.erb
spree_frontend-3.7.11 app/views/spree/products/_product.html.erb
spree_frontend-3.7.10 app/views/spree/products/_product.html.erb
spree_frontend-3.7.9 app/views/spree/products/_product.html.erb
spree_frontend-3.7.8 app/views/spree/products/_product.html.erb
spree_frontend-3.7.7 app/views/spree/products/_product.html.erb
spree_frontend-3.7.6 app/views/spree/products/_product.html.erb
spree_frontend-3.7.5 app/views/spree/products/_product.html.erb
spree_frontend-3.7.4 app/views/spree/products/_product.html.erb
spree_frontend-3.7.3 app/views/spree/products/_product.html.erb
spree_frontend-3.7.2 app/views/spree/products/_product.html.erb
spree_frontend-3.7.1 app/views/spree/products/_product.html.erb
spree_frontend-3.7.0 app/views/spree/products/_product.html.erb
spree_frontend-3.7.0.rc3 app/views/spree/products/_product.html.erb
spree_frontend-3.7.0.rc2 app/views/spree/products/_product.html.erb
spree_frontend-3.7.0.rc1 app/views/spree/products/_product.html.erb
spree_frontend-3.6.6 app/views/spree/products/_product.html.erb