Checkout

<% @order.line_items.each do |li| %> <% end %> <% if @order.discount > 0 %> <% end %>
Item Quantity Subtotal
<%= li.variant.product.title %>
<%= li.variant.title %>
<%= li.quantity %> <%= number_to_currency(li.subtotal) %>
Subtotal <%= number_to_currency(@order.subtotal) %>
Tax <%= number_to_currency(@order.tax) %>
Shipping & Handling <%= number_to_currency(@order.shipping + @order.handling) %>
Discount <%= number_to_currency(@order.discount) %>
Total <%= number_to_currency(@order.total) %>

Shipping Address

<% a = @order.shipping_address str = "#{a.name}
#{a.address1}
" str << "#{a.address2}
" if a.address2 && a.address2.strip.length > 0 str << "#{a.city}, #{a.state} #{a.zip}" %>

<%= raw str %>

Edit shipping address

Shipping Method

<%= @order.shipping_method %> - <%= number_to_currency(@order.shipping) %>

Edit shipping method

Billing Information

Card number:
Expiration: /
Security Code:
Address:
Address 2:
Zip code:

<% #
# # %> <%= sim_fields(@sim_transaction) %>
<%= content_for :caboose_css do %> <% end %> <%= content_for :caboose_js do %> <%= javascript_include_tag 'checkout' %> <% end %>