<% unless args[:custom_slider].present? %> <% else %> <%= raw args[:custom_slider] %> <% end %>
<%= render 'post_types/commerce/product_info', product: @post %>
<% unless args[:custom_footer].present? %>

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

<%= raw @post.the_content %>
<% if (attrs = @post.the_attribute_fields('ecommerce_attrs').to_a).present? && attrs.map{|k,v| v.present? }.any? %>

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

<% attrs.each_with_index do |attr, index| %> <% end %>
<%= attr['attr'].to_s.translate %> <%= attr['value'].to_s.translate %>
<% end %>
<% else %> <%= raw args[:custom_footer] %> <% end %> <%= raw args[:extra_footer] if args[:extra_footer].present? %>