<%= render layout: 'plugins/ecommerce/layouts/ecommerce', locals: {} do %>

Your cart

<%= form_tag(plugins_ecommerce_checkout_cart_update_path, :method => "post", :class => "form") do %>
Item
Price
Tax
Quantity
<% total = 0 @products.each do |product| product = product.decorate product_options = @cart.get_option("product_#{product.id}") price = product_options[:price].to_f tax = product_options[:tax].to_f qty = product_options[:qty].to_f sub_total = (price + tax) * qty total += sub_total %>
<%= current_site.current_unit %> <%= price %>
<%= current_site.current_unit %> <%= tax %>
<% end %>
Total
<%= current_site.current_unit %> <%= total.to_f.round(2) %>
<% if @products.size > 0 %>
Checkout
<% end %> <% end %>
<% end %>