Getting started with Spree/Products/Show

From the Directed Edge Developer Base
Revision as of 08:43, 28 November 2010 by Scott (talk | contribs) (Created page with "<source lang="html4strict"> <% @body_id = 'product-details' %> <h1><%= @product.name %></h1> <div id="product-images"> <div id="main-image"> <%= render 'image' -%> </div...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
<% @body_id = 'product-details' %>
<h1><%= @product.name %></h1>

<div id="product-images">
  <div id="main-image">
    <%= render 'image' -%>
  </div>
  <div id="thumbnails">
    <%= render 'thumbnails', :product => @product -%>
  </div>

<% hook :cart_form do %>
  <div id="cart-form">
    <%= render 'cart_form' %>
  </div>
<% end %>

</div>

<div id="product-description">
  <% hook :product_description do %>
    <%= product_description(@product) rescue t("product_has_no_description") %>
  <% end %>
  <% hook :product_properties do %>
    <%= render 'properties' %>
  <% end %>
</div>

<%= edgy_related_table :vertical, :max_results => 4 %>

<%= render 'taxons' %>