Sha256: 9604440c9b8f3e43d1f898249630ac2d8d664224d562495b37404a00985b0450
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
<% url = spree.product_path(product, taxon_id: taxon.try(:id)) %> <div id="product_<%= product.id %>" class="d-flex w-100 col-12 col-sm-6 col-lg-4 col-xl-3 product-list-item mb-4" data-hook="products_list_item" itemscope itemtype="https://schema.org/Product"> <div class="card w-100"> <% cache(taxon.present? ? [I18n.locale, current_currency, taxon, product] : cache_key_for_product(product)) do %> <div class="card-body text-center product-body"> <%= link_to url, itemprop: "url", class: 'd-block text-center' do %> <%= small_image(product, itemprop: "image", class: "d-block mx-auto") %> <%= content_tag(:span, truncate(product.name, length: 50), class: 'info mt-3 d-block', itemprop: "name", title: product.name) %> <% end %> </div> <div class="card-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
3 entries across 3 versions & 1 rubygems