Sha256: c57d3939c56995e9ece16e9aacf2349b7493e05ea400932adf0e29d84270cb21

Contents?: true

Size: 1.29 KB

Versions: 23

Compression:

Stored size: 1.29 KB

Contents

<div id="checkout">
	<h1>Checkout</h1>
	<%= form_for @order, :url => piggybak.orders_url, :method => "POST" do |f| %>
	<% if @order.errors.any? -%>
	<div id="checkout_error">
	<b>You have errors with your submission:</b><br />
	<%= raw @order.errors.full_messages.collect { |b| b.gsub(/^Line items payment/, 'Payment').gsub(/^Line items shipment shipping/, 'Shipping') }.join("<br />") %>
	</div>
	<% end -%>
	<div class="clear"></div>

	<%= render "user_details", :f => f %>	
	<%= render "billing_address", :f => f %>
	<%= render "shipping_address", :f => f %>

	<div id="add_details">
		<%= render "shipping", :f => f %>
		<%= render "payment", :f => f %>
		<div id="submit">
		<%= f.submit %>
		</div>
	</div>
	<% end -%>

	<div id="totals_section">
		<h3>Totals</h3>
		<%= render "piggybak/cart/items", :page => "checkout" %>
	</div>
</div>

<script type="text/javascript">
var shipping_lookup = "<%= piggybak.orders_shipping_url %>"; 
var tax_lookup = "<%= piggybak.orders_tax_url %>"; 
var geodata_lookup = "<%= piggybak.orders_geodata_url %>"; 
<% if params.has_key?(:piggybak_order) &&  params[:piggybak_order].has_key?(:shipments_attributes) -%>
var previous_shipping = <%= params[:piggybak_order][:shipments_attributes]["0"][:shipping_method_id] %>;
<% else -%>
var previous_shipping = "";
<% end -%>
</script>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
piggybak-0.7.7 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.6 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.5 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.34 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.4 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.3 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.2 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.1 app/views/piggybak/orders/submit.html.erb
piggybak-0.7.0 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.33 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.32 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.31 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.30 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.29 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.28 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.27 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.26 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.25 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.24 app/views/piggybak/orders/submit.html.erb
piggybak-0.6.23 app/views/piggybak/orders/submit.html.erb