Sha256: 34052c77cd278dd0ed2405e1d03accae9da52ff52d5bd4ec24bf3f397fb053cf

Contents?: true

Size: 1.36 KB

Versions: 19

Compression:

Stored size: 1.36 KB

Contents

<% @body_id = 'cart' %>

<h1><%= t("shopping_cart")%></h1>

<% if @order.line_items.empty? %>

  <%= hook :empty_cart do %>
    <p><%= t("your_cart_is_empty.") %></p>
    <p><%=link_to t("continue_shopping"), products_path, :class => 'button continue' %></p>
  <% end %>

<% else %>
  <%= hook :outside_cart_form do %>
    <%= form_for(@order, :url => update_cart_path, :html=>{:id=>'updatecart'}) do |order_form| %>
      <%= hook :inside_cart_form do %>

        <%= hook :cart_items do %>
          <%= render :partial => 'form', :locals => {:order_form => order_form} %>
        <% end %>

        <div id="subtotal">
          <h3><%= "#{t("subtotal")}: #{order_price(@order)}" %></h3>
          <div class="links">
            <%= link_to image_tag('/images/update.png') + t("update"), '#', :class => 'button checkout primary', :onclick => "$('form#updatecart').submit(); return false;" %>
            <%= link_to image_tag('/images/checkout.png') + t("checkout"), checkout_path, :class => 'button checkout primary' %>
          </div>
        </div>

        <p><%=link_to t("continue_shopping"), products_path, :class => 'button continue' %></p>

      <% end %>
    <% end %>
  <% end %>
  
  <%= form_tag empty_cart_path, :method => :put do %>
    <p id="clear_cart_link">
      <input type="submit" value="<%= t('empty_cart') %>" class="button" />
    </p>
  <% end %>

<% end %>

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/orders/edit.html.erb
My-Commerce_core-1.1.0 app/views/orders/edit.html.erb
My-Commerce_core-1.0.0 app/views/orders/edit.html.erb
MyCommerceapi-1.0.0 core/app/views/orders/edit.html.erb
MyCommerce-0.0.3 core/app/views/orders/edit.html.erb
rfcommerce_core-0.0.3 app/views/orders/edit.html.erb
spree_core-0.60.6 app/views/orders/edit.html.erb
spree_core-0.60.5 app/views/orders/edit.html.erb
spree_core-0.50.4 app/views/orders/edit.html.erb
spree_core-0.60.4 app/views/orders/edit.html.erb
spree_core-0.50.3 app/views/orders/edit.html.erb
spree_core-0.60.3 app/views/orders/edit.html.erb
spree_core-0.60.2 app/views/orders/edit.html.erb
spree_core-0.60.1 app/views/orders/edit.html.erb
spree_core-0.60.0 app/views/orders/edit.html.erb
spree_core-0.60.0.RC1 app/views/orders/edit.html.erb
spree_core-0.50.2 app/views/orders/edit.html.erb
spree_core-0.50.1 app/views/orders/edit.html.erb
spree_core-0.50.0 app/views/orders/edit.html.erb