<%= @post.the_title %>

SKU: <%= @post.the_sku %> <%= raw @post.the_featured_status %>

<%= @post.the_price %> <%= raw @post.the_stock_status %>


<%= @post.the_excerpt %>


<% if @post.in_stock? %>

Items available: <%= @post.the_qty_real %>

<% if @post.the_qty_real.to_i > 0 %> <%= form_tag(plugins_ecommerce_checkout_cart_add_path, :method => "post", :class => "form") do %>
<%= number_field :cart, :qty, value: 1, min: 0, max: @post.the_qty_real.to_i %> <%= hidden_field :cart, :product_id, value: @post.id %>
<% end %> <% end %> <% end %>

Description

<%= raw @post.the_content %>
<% attrs = []; @field_values[:ecommerce_attrs].to_a.each { |attr| attrs << JSON.parse(attr) rescue {} } %> <% if attrs.present? %>

Attributes

<% attrs.each do |data| %> <% end %>
<%= data['attr'] %> <%= data['value'] %>
<% end %>