<% @body_id = 'cart' %> <% if @variant %> <%= render partial: 'spree/shared/trackers/segment/product_added.js', formats: :js, locals: { product: @variant.product, order: @order } %> <% end %> <%= render partial: 'spree/shared/trackers/segment/cart_viewed.js', formats: :js, locals: { order: @order } %>

<%= Spree.t(:shopping_cart) %>

<% if @order.line_items.empty? %>
<%= Spree.t(:your_cart_is_empty) %>

<%= link_to Spree.t(:continue_shopping), products_path, class: 'btn btn-default' %>

<% else %>
<%= form_for @order, url: update_cart_path, html: { id: 'update-cart' } do |order_form| %>
<%= render partial: 'form', locals: { order_form: order_form } %>
<% if Spree::Frontend::Config[:coupon_codes_enabled] %>
<% end %>
<% end %>
<%= form_tag empty_cart_path, method: :put do %> <% end %>
<% end %>