<%= @post.the_title %>

<%= t('plugins.ecommerce.single.sku', default: 'SKU') %>: <%= @post.the_sku %> <%= raw @post.the_featured_status %>

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


<%= @post.the_excerpt %>


<% if @post.in_stock? %>

<%= t('plugins.ecommerce.single.available_items', default: '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 %>
<%= t('plugins.ecommerce.single.qty', default: 'Qty') %> <%= number_field :cart, :qty, class: 'form-control', value: 1, min: 0, max: @post.the_qty_real.to_i %> <%= hidden_field :cart, :product_id, value: @post.id %>
<% end %> <% end %> <% else %>

<%= t('plugins.ecommerce.single.noavailable_items', default: 'No items available') %>

<% end %>

<%= t('plugins.ecommerce.single.descr', default: 'Description') %>

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

<%= t('plugins.ecommerce.single.attrs', default: 'Attributes') %>

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