Skip to content

Instantly share code, notes, and snippets.

@mmcc
Created November 30, 2011 20:36
Show Gist options
  • Save mmcc/1410701 to your computer and use it in GitHub Desktop.
Save mmcc/1410701 to your computer and use it in GitHub Desktop.
Products partial
<% if products.any? %>
<ul id="products" title="<%= t(:search_results, :keywords => h(params[:keywords])) %>" selected="true" class="product-listing" data-hook>
<% products.each do |product| %>
<% if Spree::Config[:show_zero_stock_products] || product.has_stock? %>
<li id="product_<%= product.id %>" data-hook="products_list_item">
<%= link_to product.name, product, :class => 'info' %>
<span class="price selling"><%= product_price(product) %></span>
</li>
<% end %>
<% end %>
</ul>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment