Sha256: d2b6723a23b93cc4f035cb2019c6b6cacf75ed91441d0eef5dc3c4d7feb16f34

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

<%
  base_class = "product-availability".freeze

  # Classes
  class_names = [base_class]
  class_names = class_names.join(" ")
%>

<% if product.master.can_supply? %>
  <link itemprop="availability" href="http://schema.org/InStock" />
<% elsif product.variants.empty? %>
  <span
    class="<%= class_names %>"
    itemprop="availability"
    href="http://schema.org/OutOfStock"
  >
    <%= t('spree.out_of_stock') %>
  </span>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/products/_product_availability.html.erb