Sha256: 061f5f4fb295952efbc4c02b720009250f86b48ef231dc88769d72e16eee67cd

Contents?: true

Size: 1.76 KB

Versions: 1

Compression:

Stored size: 1.76 KB

Contents

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

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

    <% if Spree::AdvancedCart::Config[:enable_coupon_applying] %>
      <table id="order-charges">
        <tbody>
          <% @order.adjustments.each do |adjustment| %>
            <tr>
              <td><strong><%= adjustment.label %></strong></td>
              <td class="total"><span><%= number_to_currency adjustment.amount %></span></td>
            </tr>
          <% end %>
        </tbody>
      </table>

      <div id="applying_coupon">
        <h3><%= t(:apply_coupon) %></h3>
        <label><%= t(:coupon_code) %></label>
        <%= order_form.text_field :coupon_code, :size => 19 %>
        <span class="ajax_loader"><%= image_tag 'ajax_loader.gif', :alt => t('loading') %></span>
        <%= order_form.submit t("apply") %>
      </div>
    <% end %>

    <div id="subtotal">
      <%= hook :advanced_cart_subtotal do %>
        <h3><%= "#{t("subtotal")}: #{order_price(@order)}" %></h3>
        <% if Spree::AdvancedCart::Config[:enable_coupon_applying] %>
          <h3><%= "#{t("total")}: #{number_to_currency @order.total}" %></h3>
        <% end %>
      <% end %>
      <%= hook :advanced_cart_subtotal_links do %>
      <div class="links">
        <%= link_to image_tag('/images/update.png') + t("recalculate"), '#', :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>
      <% end %>
    </div>

  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
synergy_default_theme-1.0.0 app/views/orders/_advanced_cart.html.erb