spree_heist_theme 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/LICENSE +26 -0
- data/README.md +19 -0
- data/app/assets/images/store/auth-icons.png +0 -0
- data/app/assets/images/store/bg.jpg +0 -0
- data/app/assets/images/store/footer_bkgd.jpg +0 -0
- data/app/assets/images/store/icons/american-express-curved-32px.png +0 -0
- data/app/assets/images/store/icons/discover-curved-32px.png +0 -0
- data/app/assets/images/store/icons/facebook.png +0 -0
- data/app/assets/images/store/icons/mastercard-curved-32px.png +0 -0
- data/app/assets/images/store/icons/social-icons-rollover.png +0 -0
- data/app/assets/images/store/icons/social-icons.png +0 -0
- data/app/assets/images/store/icons/twitter.png +0 -0
- data/app/assets/images/store/icons/visa-curved-32px.png +0 -0
- data/app/assets/images/store/kid.jpg +0 -0
- data/app/assets/images/store/logo.png +0 -0
- data/app/assets/images/store/narrow_bg.png +0 -0
- data/app/assets/images/store/satellite-radios-bg.jpg +0 -0
- data/app/assets/images/store/search_bg_s1.gif +0 -0
- data/app/assets/images/store/shadow_top.png +0 -0
- data/app/assets/images/store/social-icons-rollover.png +0 -0
- data/app/assets/images/store/social-icons.png +0 -0
- data/app/assets/javascripts/store/checkout.js +78 -0
- data/app/assets/javascripts/store/rdr_wishlist.js +31 -0
- data/app/assets/stylesheets/store/auth-buttons.css +376 -0
- data/app/assets/stylesheets/store/base.css +0 -0
- data/app/assets/stylesheets/store/cart.css +141 -0
- data/app/assets/stylesheets/store/checkout.css +278 -0
- data/app/assets/stylesheets/store/display.css.erb +225 -0
- data/app/assets/stylesheets/store/editor.css +37 -0
- data/app/assets/stylesheets/store/errors.css.erb +55 -0
- data/app/assets/stylesheets/store/login.css +31 -0
- data/app/assets/stylesheets/store/misc.css +85 -0
- data/app/assets/stylesheets/store/products.css +133 -0
- data/app/assets/stylesheets/store/rdr.css +16 -0
- data/app/assets/stylesheets/store/reset.css +72 -0
- data/app/assets/stylesheets/store/screen.scss.css +0 -0
- data/app/assets/stylesheets/store/social.css +61 -0
- data/app/assets/stylesheets/store/spree_core.css +0 -0
- data/app/assets/stylesheets/store/taxonomy.css.erb +72 -0
- data/app/assets/stylesheets/store/typography.css +167 -0
- data/app/overrides/shared/replace_rescently_viewed_products_block_title.rb +4 -0
- data/app/overrides/spree/checkout/payment/remove_card_expiration.rb +3 -0
- data/app/overrides/spree/checkout/payment/remove_cart_code.rb +3 -0
- data/app/overrides/spree/checkout/payment/remove_gateway_icons.rb +5 -0
- data/app/overrides/spree/checkout/payment/replace_gateway_fields.rb +26 -0
- data/app/overrides/spree/checkout/payment/replace_paypal_payment.rb +8 -0
- data/app/overrides/spree/checkout/remove_checkout_registration_header.rb +4 -0
- data/app/overrides/spree/checkout/remove_confirm_buttons.rb +3 -0
- data/app/overrides/spree/checkout/remove_delivery_buttons.rb +3 -0
- data/app/overrides/spree/checkout/remove_payment_buttons.rb +3 -0
- data/app/overrides/spree/checkout/remove_shipping.rb +3 -0
- data/app/overrides/spree/checkout/remove_summary_title.rb +4 -0
- data/app/overrides/spree/checkout/remvove_address_buttons.rb +4 -0
- data/app/overrides/spree/checkout/replace_billing.rb +175 -0
- data/app/overrides/spree/checkout/replace_checkout.rb +25 -0
- data/app/overrides/spree/checkout/replace_checkout_registration.rb +47 -0
- data/app/overrides/spree/checkout/replace_confirm.rb +70 -0
- data/app/overrides/spree/checkout/replace_order_summary.rb +38 -0
- data/app/overrides/spree/checkout/replace_payment.rb +21 -0
- data/app/overrides/spree/checkout/replace_shipping_method.rb +27 -0
- data/app/overrides/spree/layouts/replace_body.rb +95 -0
- data/app/overrides/spree/orders/remove_orders_show_header.rb +5 -0
- data/app/overrides/spree/orders/replace_cart_detail.rb +34 -0
- data/app/overrides/spree/orders/replace_empty-cart.rb +3 -0
- data/app/overrides/spree/orders/replace_line_item.rb +34 -0
- data/app/overrides/spree/orders/replace_orders_show.rb +83 -0
- data/app/overrides/spree/orders/replace_outside_cart_form.rb +21 -0
- data/app/overrides/spree/products/add_related_products_to_cart_form.rb +20 -0
- data/app/overrides/spree/products/add_taxonomies_to_product_show.rb +7 -0
- data/app/overrides/spree/products/drop_icon_from_add_to_wishlist.rb +5 -0
- data/app/overrides/spree/products/redefine_add_wish_to_cart_form.rb +7 -0
- data/app/overrides/spree/products/redefine_email_to_friend.rb +13 -0
- data/app/overrides/spree/products/replace_cart_form.rb +42 -0
- data/app/overrides/spree/products/replace_product_show.rb +87 -0
- data/app/overrides/spree/shared/add_to_head.rb +4 -0
- data/app/overrides/spree/shared/redefine_recently_viewed_overrides.rb +16 -0
- data/app/overrides/spree/shared/remove_brs_from_login_form.rb +3 -0
- data/app/overrides/spree/shared/remove_brs_from_user_form.rb +4 -0
- data/app/overrides/spree/shared/replace_products.rb +30 -0
- data/app/overrides/spree/shared/replace_taxonomies.rb +5 -0
- data/app/overrides/spree/shared/tweak_button_login.rb +5 -0
- data/app/overrides/spree/shared/tweak_remember_me_login.rb +6 -0
- data/app/overrides/spree/taxons/replace_taxon_children.rb +6 -0
- data/app/overrides/spree/taxons/replace_taxon_sidebar_navigation.rb +7 -0
- data/app/overrides/spree/user_registrations/redefine_add_socials_to_login_extras.rb +14 -0
- data/app/overrides/spree/user_registrations/replace_user_registration_new.rb +11 -0
- data/app/overrides/spree/user_sessions/replace_user_sessions_new.rb +39 -0
- data/app/overrides/spree/users/redefine_add_wishlists_to_account_my_orders.rb +13 -0
- data/app/overrides/spree/users/redefine_replace_account_summary_with_social_logins.rb +44 -0
- data/app/overrides/spree/users/remove_account_summary.rb +3 -0
- data/app/overrides/spree/users/replace_account_header.rb +4 -0
- data/app/overrides/spree/users/replace_account_my_orders.rb +36 -0
- data/app/overrides/spree/wishlists/replace_new_wishlist_form.rb +9 -0
- data/app/overrides/spree/wishlists/replace_new_wishlist_header.rb +5 -0
- data/app/views/spree/shared/_all_products.html.erb +22 -0
- data/app/views/spree/shared/_product_banner.html.erb +6 -0
- data/app/views/spree/shared/_social_users.html.erb +13 -0
- data/app/views/spree/wishlists/show.html.erb +86 -0
- data/lib/generators/spree_heist_theme/install/install_generator.rb +17 -0
- data/lib/spree_heist_theme.rb +15 -0
- data/spree_heist_theme.gemspec +16 -0
- data/vendor/assets/images/fancybox/blank.gif +0 -0
- data/vendor/assets/images/fancybox/fancy_close.png +0 -0
- data/vendor/assets/images/fancybox/fancy_loading.png +0 -0
- data/vendor/assets/images/fancybox/fancy_nav_left.png +0 -0
- data/vendor/assets/images/fancybox/fancy_nav_right.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_e.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_n.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_ne.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_nw.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_s.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_se.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_sw.png +0 -0
- data/vendor/assets/images/fancybox/fancy_shadow_w.png +0 -0
- data/vendor/assets/images/fancybox/fancy_title_left.png +0 -0
- data/vendor/assets/images/fancybox/fancy_title_main.png +0 -0
- data/vendor/assets/images/fancybox/fancy_title_over.png +0 -0
- data/vendor/assets/images/fancybox/fancy_title_right.png +0 -0
- data/vendor/assets/images/fancybox/fancybox-x.png +0 -0
- data/vendor/assets/images/fancybox/fancybox-y.png +0 -0
- data/vendor/assets/images/fancybox/fancybox.png +0 -0
- data/vendor/assets/javascripts/jquery.easing-1.3.pack.js +72 -0
- data/vendor/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
- data/vendor/assets/javascripts/jquery.fancybox-1.3.4.pack.js +46 -0
- data/vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/vendor/assets/stylesheets/jq-autocomplete.css +48 -0
- data/vendor/assets/stylesheets/jq-mobile-1.0a2.css +866 -0
- data/vendor/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
- metadata +174 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => 'spree/checkout/payment/_paypalexpress',
|
2
|
+
:name => 'replace_paypal_payment',
|
3
|
+
:replace => 'a',
|
4
|
+
:text => %q{<li class="payment_method <%= payment_method.id %>" style="display:<%= checked == payment_method.id ? "block" : "none" %>;">
|
5
|
+
<h2>Your PayPal Information</h2>
|
6
|
+
<p>You will be redirected to PayPal's website when you click continue below.</p>
|
7
|
+
</li>})
|
8
|
+
|
@@ -0,0 +1,175 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/_address},
|
2
|
+
:name => %q{replace_billing},
|
3
|
+
:replace => %q{#billing[data-hook]},
|
4
|
+
:text => %q{
|
5
|
+
<div id="content" role="content">
|
6
|
+
<h2>Your Billing Information</h2>
|
7
|
+
<fieldset id="billing" data-hook>
|
8
|
+
<%= form.fields_for :bill_address do |bill_form| %>
|
9
|
+
<legend><%= t(:billing_address) %></legend>
|
10
|
+
<div class="inner" data-hook="billing_inner">
|
11
|
+
<p class="field" id="bfirstname">
|
12
|
+
<%= bill_form.label :firstname, t(:first_name) %><span class="req">*</span><br />
|
13
|
+
<%= bill_form.text_field :firstname, :class => 'required' %>
|
14
|
+
</p>
|
15
|
+
<p class="field" id="blastname">
|
16
|
+
<%= bill_form.label :lastname, t(:last_name) %><span class="req">*</span><br />
|
17
|
+
<%= bill_form.text_field :lastname, :class => 'required' %>
|
18
|
+
</p>
|
19
|
+
<% if Spree::Config[:company] %>
|
20
|
+
<p class="field" id="bcompany">
|
21
|
+
<%= bill_form.label :company, t(:company) %><br />
|
22
|
+
<%= bill_form.text_field :company %>
|
23
|
+
</p>
|
24
|
+
<% end %>
|
25
|
+
<p class="field" id="baddress1">
|
26
|
+
<%= bill_form.label :address1, t(:street_address) %><span class="req">*</span><br />
|
27
|
+
<%= bill_form.text_field :address1, :class => 'required' %>
|
28
|
+
</p>
|
29
|
+
<p class="field" id="baddress2">
|
30
|
+
<%= bill_form.label :address2, t(:street_address_2) %><br />
|
31
|
+
<%= bill_form.text_field :address2 %>
|
32
|
+
</p>
|
33
|
+
|
34
|
+
<p class="field" id="bcity">
|
35
|
+
<%= bill_form.label :city, t(:city) %><span class="req">*</span><br />
|
36
|
+
<%= bill_form.text_field :city, :class => 'required' %>
|
37
|
+
</p>
|
38
|
+
|
39
|
+
<p class="field" id="bcountry">
|
40
|
+
<%= bill_form.label :country_id, t(:country) %><span class="req">*</span><br />
|
41
|
+
<span id="bcountry">
|
42
|
+
<%= bill_form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %>
|
43
|
+
</span>
|
44
|
+
</p>
|
45
|
+
|
46
|
+
<% if Spree::Config[:address_requires_state] %>
|
47
|
+
<p class="field" id="bstate">
|
48
|
+
<% have_states = !@order.bill_address.country.states.empty? %>
|
49
|
+
<%= bill_form.label :state, t(:state) %><span class="req">*</span><br />
|
50
|
+
<noscript>
|
51
|
+
<%= bill_form.text_field :state_name, :class => 'required' %>
|
52
|
+
</noscript>
|
53
|
+
<% state_elements = [
|
54
|
+
bill_form.collection_select(:state_id, @order.bill_address.country.states,
|
55
|
+
:id, :name,
|
56
|
+
{:include_blank => true},
|
57
|
+
{:class => have_states ? 'required' : 'hidden',
|
58
|
+
:disabled => !have_states}) +
|
59
|
+
bill_form.text_field(:state_name,
|
60
|
+
:class => !have_states ? 'required' : 'hidden',
|
61
|
+
:disabled => have_states)
|
62
|
+
].join.gsub('"', "'").gsub("\n", "")
|
63
|
+
%>
|
64
|
+
<%= javascript_tag do -%>
|
65
|
+
document.write("<%== state_elements %>");
|
66
|
+
<% end -%>
|
67
|
+
</p>
|
68
|
+
<% end %>
|
69
|
+
|
70
|
+
<p class="field" id="bzipcode">
|
71
|
+
<%= bill_form.label :zipcode, t(:zip) %><span class="req">*</span><br />
|
72
|
+
<%= bill_form.text_field :zipcode, :class => 'required' %>
|
73
|
+
</p>
|
74
|
+
<p class="field" id="bphone">
|
75
|
+
<%= bill_form.label :phone, t(:phone) %><span class="req">*</span><br />
|
76
|
+
<%= bill_form.text_field :phone, :class => 'required' %>
|
77
|
+
</p>
|
78
|
+
<% if Spree::Config[:alternative_billing_phone] %>
|
79
|
+
<p class="field" id="baltphone">
|
80
|
+
<%= bill_form.label :alternative_phone, t(:alternative_phone) %><br />
|
81
|
+
<%= bill_form.text_field :alternative_phone %>
|
82
|
+
</p>
|
83
|
+
<% end %>
|
84
|
+
</div>
|
85
|
+
<% end %>
|
86
|
+
</fieldset>
|
87
|
+
<hr/>
|
88
|
+
|
89
|
+
<h2>Your Shipping Information</h2>
|
90
|
+
<fieldset id="shipping" data-hook>
|
91
|
+
<%= form.fields_for :ship_address do |ship_form| %>
|
92
|
+
<legend><%= t(:shipping_address) %></legend>
|
93
|
+
<p class="field checkbox" data-hook="use_billing">
|
94
|
+
<%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %>
|
95
|
+
<%= label_tag :order_use_billing, t(:use_billing_address), :id => 'use_billing' %>
|
96
|
+
</p>
|
97
|
+
<div class="inner" data-hook="shipping_inner">
|
98
|
+
<p class="field" id="sfirstname">
|
99
|
+
<%= ship_form.label :firstname, t(:first_name) %><span class="req">*</span><br />
|
100
|
+
<%= ship_form.text_field :firstname, :class => 'required' %>
|
101
|
+
</p>
|
102
|
+
<p class="field" id="slastname">
|
103
|
+
<%= ship_form.label :lastname, t(:last_name) %><span class="req">*</span><br />
|
104
|
+
<%= ship_form.text_field :lastname, :class => 'required' %>
|
105
|
+
</p>
|
106
|
+
<% if Spree::Config[:company] %>
|
107
|
+
<p class="field" id="scompany">
|
108
|
+
<%= ship_form.label :company, t(:company) %><br />
|
109
|
+
<%= ship_form.text_field :company %>
|
110
|
+
</p>
|
111
|
+
<% end %>
|
112
|
+
<p class="field" id="saddress1">
|
113
|
+
<%= ship_form.label :address1, t(:street_address) %><span class="req">*</span><br />
|
114
|
+
<%= ship_form.text_field :address1, :class => 'required' %>
|
115
|
+
</p>
|
116
|
+
<p class="field" id="saddress2">
|
117
|
+
<%= ship_form.label :address2, t(:street_address_2) %><br />
|
118
|
+
<%= ship_form.text_field :address2 %>
|
119
|
+
</p>
|
120
|
+
|
121
|
+
<p class="field" id="scity">
|
122
|
+
<%= ship_form.label :city, t(:city) %><span class="req">*</span><br />
|
123
|
+
<%= ship_form.text_field :city, :class => 'required' %>
|
124
|
+
</p>
|
125
|
+
|
126
|
+
<p class="field" id="scountry">
|
127
|
+
<%= ship_form.label :country_id, t(:country) %><span class="req">*</span><br />
|
128
|
+
<span id="scountry">
|
129
|
+
<%= ship_form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %>
|
130
|
+
</span>
|
131
|
+
</p>
|
132
|
+
|
133
|
+
<% if Spree::Config[:address_requires_state] %>
|
134
|
+
<p class="field" id="sstate">
|
135
|
+
<% have_states = !@order.ship_address.country.states.empty? %>
|
136
|
+
<%= ship_form.label :state, t(:state) %><span class="req">*</span><br />
|
137
|
+
<noscript>
|
138
|
+
<%= ship_form.text_field :state_name, :class => 'required' %>
|
139
|
+
</noscript>
|
140
|
+
<% state_elements = [
|
141
|
+
ship_form.collection_select(:state_id, @order.ship_address.country.states,
|
142
|
+
:id, :name,
|
143
|
+
{:include_blank => true},
|
144
|
+
{:class => have_states ? 'required' : 'hidden',
|
145
|
+
:disabled => !have_states}) +
|
146
|
+
ship_form.text_field(:state_name,
|
147
|
+
:class => !have_states ? 'required' : 'hidden',
|
148
|
+
:disabled => have_states)
|
149
|
+
].join.gsub('"', "'").gsub("\n", "")
|
150
|
+
%>
|
151
|
+
<%= javascript_tag do -%>
|
152
|
+
document.write("<%== state_elements %>");
|
153
|
+
<% end %>
|
154
|
+
</p>
|
155
|
+
<% end %>
|
156
|
+
|
157
|
+
<p class="field" id="szipcode">
|
158
|
+
<%= ship_form.label :zipcode, t(:zip) %><span class="req">*</span><br />
|
159
|
+
<%= ship_form.text_field :zipcode, :class => 'required' %>
|
160
|
+
</p>
|
161
|
+
<p class="field" id="sphone">
|
162
|
+
<%= ship_form.label :phone, t(:phone) %><span class="req">*</span><br />
|
163
|
+
<%= ship_form.text_field :phone, :class => 'required' %>
|
164
|
+
</p>
|
165
|
+
<% if Spree::Config[:alternative_shipping_phone] %>
|
166
|
+
<p class="field" id="saltphone">
|
167
|
+
<%= ship_form.label :alternative_phone, t(:alternative_phone) %><br />
|
168
|
+
<%= ship_form.text_field :alternative_phone %>
|
169
|
+
</p>
|
170
|
+
<% end %>
|
171
|
+
</div>
|
172
|
+
<% end %>
|
173
|
+
</fieldset>
|
174
|
+
<div class="submit"><button type="submit" class="blue">Continue</button></div>
|
175
|
+
</div>})
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/edit},
|
2
|
+
:name => %q{replace_checkout},
|
3
|
+
:replace => %q{#checkout[data-hook]},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<div id="checkout" role="checkout" class="clearfix">
|
6
|
+
<div id="title" role="title">CHECKOUT</div>
|
7
|
+
<!-- START MAIN CONTENT -->
|
8
|
+
<div id="main-content" role="main-content">
|
9
|
+
<%= render "spree/shared/error_messages", :target => @order %>
|
10
|
+
<div id="tabs" role="tabs">
|
11
|
+
<ul>
|
12
|
+
<li><span class="number">1</span><span class="title">Create an Account</span></li>
|
13
|
+
<li <%= @order.address? && controller.action_name != "registration" ? "class='active'" : "" %>><span class="number">2</span><span class="title">Your Address</span></li>
|
14
|
+
<li <%= @order.delivery? && controller.action_name != "registration" ? "class='active'" : "" %>><span class="number">3</span><span class="title">Shipping Options</span></li>
|
15
|
+
<li <%= @order.payment? && controller.action_name != "registration" ? "class='active'" : "" %>><span class="number">4</span><span class="title">Payment Options</span></li>
|
16
|
+
<li <%= @order.confirm? && controller.action_name != "registration" ? "class='active'" : "" %>><span class="number">5</span><span class="title">Place Order</span></li>
|
17
|
+
</ul>
|
18
|
+
</div>
|
19
|
+
<%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
|
20
|
+
<%= render @order.state, :form => form %>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
<!-- END MAIN CONTENT -->
|
24
|
+
<%= render 'summary' %>
|
25
|
+
</div>})
|
@@ -0,0 +1,47 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/registration},
|
2
|
+
:name => %q{replace_checkout_registration},
|
3
|
+
:replace => %q{#registration},
|
4
|
+
:text => %q{<div id="checkout" role="checkout" class="clearfix">
|
5
|
+
<div id="title" role="title">CHECKOUT</div>
|
6
|
+
<!-- START MAIN CONTENT -->
|
7
|
+
<div id="main-content" role="main-content">
|
8
|
+
<%= render "spree/shared/error_messages", :target => @order %>
|
9
|
+
<div id="tabs" role="tabs">
|
10
|
+
<ul>
|
11
|
+
<li class='active'><span class="number">1</span><span class="title">Create an Account</span></li>
|
12
|
+
<li><span class="number">2</span><span class="title">Your Address</span></li>
|
13
|
+
<li><span class="number">3</span><span class="title">Shipping Options</span></li>
|
14
|
+
<li><span class="number">4</span><span class="title">Payment Options</span></li>
|
15
|
+
<li><span class="number">5</span><span class="title">Place Order</span></li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
18
|
+
<div id="content" role="content">
|
19
|
+
<div id="existing-customer">
|
20
|
+
<h2>Existing Customers</h2>
|
21
|
+
<p>If you've already registered for an account on you can sign in here:</p>
|
22
|
+
<%= render :partial => 'spree/shared/login' %>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<hr>
|
26
|
+
|
27
|
+
<%= render :template => 'spree/user_registrations/new' %>
|
28
|
+
|
29
|
+
<hr>
|
30
|
+
<% if Spree::Config[:allow_guest_checkout] %>
|
31
|
+
<div id="guest_checkout" data-hook class="columns omega eight">
|
32
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
|
33
|
+
<h2><%= t(:guest_user_account) %></h2>
|
34
|
+
<%= form_for @order, :url => update_checkout_registration_path, :method => :put, :html => { :id => 'checkout_form_registration' } do |f| %>
|
35
|
+
<p>
|
36
|
+
<%= f.label :email, t(:email) %><br />
|
37
|
+
<%= f.email_field :email, :class => 'title' %>
|
38
|
+
</p>
|
39
|
+
<p><%= f.submit t(:continue), :class => 'button primary' %></p>
|
40
|
+
<% end %>
|
41
|
+
</div>
|
42
|
+
<% end %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<!-- END MAIN CONTENT -->
|
46
|
+
<%= render 'summary' %>
|
47
|
+
</div>})
|
@@ -0,0 +1,70 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/_confirm},
|
2
|
+
:name => %q{replace_confirm},
|
3
|
+
:replace => %q{#order_details[data-hook]},
|
4
|
+
:text => %q{<div id="content" role="content">
|
5
|
+
<div id="order-items" style="padding:0 30px 30px 0">
|
6
|
+
<h2>Items In Your Order</h2>
|
7
|
+
<ul>
|
8
|
+
<% @order.line_items.each do |line_item| %>
|
9
|
+
<li>
|
10
|
+
<%= line_item.quantity %> <%= line_item.variant.product.name %> for
|
11
|
+
<%= number_to_currency (line_item.price * line_item.quantity)-%>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
<%= link_to "edit", cart_path %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div id="order-email" style="padding:30px 30px 30px 0">
|
19
|
+
<h2>Order Contact Details</h2>
|
20
|
+
<h4>Email</h4>
|
21
|
+
<%= @order.email %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<% ["ship", "bill"].each do |addr_type| %>
|
25
|
+
<% address = @order.send("#{addr_type}_address") %>
|
26
|
+
<div id="order-#{addr_type}_address" style="float:left; padding:30px 30px 30px 0">
|
27
|
+
<h4><%= addr_type.capitalize %> Address</h4>
|
28
|
+
<p>
|
29
|
+
<%= address.full_name %><br />
|
30
|
+
<%= address.address1 %><br />
|
31
|
+
<% unless address.address2.blank? %>
|
32
|
+
<%= address.address2 %><br />
|
33
|
+
<% end %>
|
34
|
+
<%= address.city %>
|
35
|
+
<% if address.state_id.blank? %>
|
36
|
+
<br /><%= address.state_name %><br />
|
37
|
+
<% else %>
|
38
|
+
<%= address.state.abbr %><br />
|
39
|
+
<% end %>
|
40
|
+
<%= address.country.try(:name) %> <%= address.zipcode %>
|
41
|
+
</p>
|
42
|
+
<%= link_to "edit", checkout_state_path('payment') %>
|
43
|
+
</div>
|
44
|
+
<% end %>
|
45
|
+
|
46
|
+
<div id="order-payment" style="padding:30px 30px 30px 0; clear:both">
|
47
|
+
<h2>Payment Details</h2>
|
48
|
+
<h4><%= @order.payment.payment_method.name %></h4>
|
49
|
+
|
50
|
+
<% if @order.payment.payment_method.class.to_s == "BillingIntegration::PaypalExpress" %>
|
51
|
+
<p>You will be redirected to PayPal to complete your order.</p>
|
52
|
+
<% else %>
|
53
|
+
<%= @order.payment.source.name %><br />
|
54
|
+
<%= @order.payment.source.display_number %>
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
<%= link_to "edit", checkout_state_path('payment') %>
|
58
|
+
</div>
|
59
|
+
<div>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
<div class="submit">
|
63
|
+
<% if @order.payment.payment_method.class.to_s == "BillingIntegration::PaypalExpress" %>
|
64
|
+
<button class="blue" type="submit">Go To PayPal</button>
|
65
|
+
<% else %>
|
66
|
+
<button class="blue" type="submit">Place your order</button>
|
67
|
+
<% end %>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
</div>})
|
@@ -0,0 +1,38 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/_summary},
|
2
|
+
:name => %q{replace_order_summary'},
|
3
|
+
:replace => %q{[data-hook='order_summary']},
|
4
|
+
:text => %q{<div id="aside" role="aside">
|
5
|
+
<div id="order" role="order">
|
6
|
+
|
7
|
+
<h3><%= t(:order_summary) %></h3>
|
8
|
+
|
9
|
+
<table class="items">
|
10
|
+
<% for line_item in @order.line_items %>
|
11
|
+
<% variant = line_item.variant %>
|
12
|
+
<tr>
|
13
|
+
<td class="qty">(<%= line_item.quantity %>)</td>
|
14
|
+
<td class="description"><%= variant.product.name %></td>
|
15
|
+
<td class="price"><%= number_to_currency(line_item.price) %></td>
|
16
|
+
</tr>
|
17
|
+
<% end %>
|
18
|
+
</table>
|
19
|
+
|
20
|
+
<table class="total">
|
21
|
+
<tr>
|
22
|
+
<th>Subtotal</th>
|
23
|
+
<td><%= number_to_currency @order.item_total %></td>
|
24
|
+
</tr>
|
25
|
+
<% @order.adjustments.each do |adjustment| %>
|
26
|
+
<tr>
|
27
|
+
<th><%= adjustment.label %></th>
|
28
|
+
<td class="amount"><%= number_to_currency adjustment.amount -%></td>
|
29
|
+
</tr>
|
30
|
+
<% end %>
|
31
|
+
<tr class="total">
|
32
|
+
<th>Total</th>
|
33
|
+
<td><%= number_to_currency @order.total %></td>
|
34
|
+
</tr>
|
35
|
+
</table>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</div>})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/_payment},
|
2
|
+
:name => %q{replace_payment},
|
3
|
+
:replace => %q{#payment[data-hook]},
|
4
|
+
:text => %q{<div id="content" role="content">
|
5
|
+
<ul id="payment" class="fields">
|
6
|
+
<h2>Your prefered payment option</h2>
|
7
|
+
<% @order.available_payment_methods.each do |method| %>
|
8
|
+
<li class="options">
|
9
|
+
<%= radio_button_tag "order[payments_attributes][][payment_method_id]", method.id, method == @order.payment_method %>
|
10
|
+
<label><%= t(method.name, :scope => :payment_methods, :default => method.name) %></label>
|
11
|
+
</li>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<hr />
|
15
|
+
<% @order.available_payment_methods.each_with_index do |method, i| %>
|
16
|
+
<%= render "spree/checkout/payment/#{method.method_type}", :payment_method => method, :checked => (@order.try(:payment).try(:payment_method_id) || method.id if i == 0) %>
|
17
|
+
<% end %>
|
18
|
+
</ul>
|
19
|
+
<br>
|
20
|
+
<div class="submit"><button type="submit" class="blue">Continue</button></div>
|
21
|
+
</div>})
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/checkout/_delivery},
|
2
|
+
:name => %q{replace_shipping_method},
|
3
|
+
:replace => %q{#shipping_method[data-hook]},
|
4
|
+
:text => %q{<div id="content" role="content">
|
5
|
+
<h2>Choose A Shipping Method</h2>
|
6
|
+
<ul class="fields">
|
7
|
+
|
8
|
+
<div id="methods">
|
9
|
+
<p class="field radios">
|
10
|
+
<% @order.rate_hash.each do |shipping_method| %>
|
11
|
+
<label>
|
12
|
+
<%= radio_button(:order, :shipping_method_id, shipping_method[:id]) %>
|
13
|
+
<%= shipping_method[:name] %> <%= number_to_currency shipping_method[:cost] %>
|
14
|
+
</label><br />
|
15
|
+
<% end %>
|
16
|
+
</p>
|
17
|
+
</div>
|
18
|
+
<% if Spree::Config[:shipping_instructions] && @order.rate_hash.present? %>
|
19
|
+
<p id="minstrs" data-hook>
|
20
|
+
<%= form.label :special_instructions, t("shipping_instructions") %><br />
|
21
|
+
<%= form.text_area :special_instructions, :cols => 40, :rows => 7 %>
|
22
|
+
</p>
|
23
|
+
<% end %>
|
24
|
+
</ul>
|
25
|
+
|
26
|
+
<div class="submit"><button type="submit" class="blue">Continue</button></div>
|
27
|
+
</div>})
|
@@ -0,0 +1,95 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/layouts/spree_application},
|
2
|
+
:name => %q{replace_body},
|
3
|
+
:replace => %q{[data-hook='body']},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<body id="<%= (@body_id == 'signup' ? 'checkout' : @body_id) || controller.controller_name %>">
|
6
|
+
<div id="container">
|
7
|
+
<header>
|
8
|
+
<%= link_to image_tag("store/social-icons-rollover.png", :width => "300", :height => "58", :alt => "Rails Dog Radio", :id => "logo"), root_url %>
|
9
|
+
<form action="#" >
|
10
|
+
</form>
|
11
|
+
<%= form_tag products_url, :method => :get do %>
|
12
|
+
<input type="search" id="s1" class="empty" name="keywords" placeholder="Search Railsdog Radio">
|
13
|
+
<% end %>
|
14
|
+
<nav>
|
15
|
+
<%= link_to "products", products_path %>
|
16
|
+
<% if current_user %>
|
17
|
+
<%= link_to t('my_account'), account_path, :class => "cart" %>
|
18
|
+
<%= link_to t('logout'), destroy_user_session_path, :class => "cart" %>
|
19
|
+
<% else %>
|
20
|
+
<%= link_to t('log_in'), login_path, :class => "cart" %>
|
21
|
+
<% end %>
|
22
|
+
<%= link_to_cart %>
|
23
|
+
</nav>
|
24
|
+
</header>
|
25
|
+
|
26
|
+
<% if content_for?(:banner) %>
|
27
|
+
<div id="banner" role="banner">
|
28
|
+
<%= yield :banner %>
|
29
|
+
</div>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
<div id="main" role="main">
|
33
|
+
<% if flash.notice %>
|
34
|
+
<div class="flash notice"><%= flash.notice %></div>
|
35
|
+
<% end %>
|
36
|
+
<% if flash[:error] %>
|
37
|
+
<div class="flash errors"><%= flash[:error] %></div>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
<%= yield %>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<% if content_for?(:sidebar) %>
|
44
|
+
<div id="sidebar" role="sidebar">
|
45
|
+
<%= yield :sidebar %>
|
46
|
+
</div>
|
47
|
+
<% end %>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<footer data-hook="footer">
|
52
|
+
<div class="inner">
|
53
|
+
<%= image_tag "store/kid.jpg", :width => "204", :height => "413", :alt => "RailsDog Radio Kid", :id => "kid" %>
|
54
|
+
|
55
|
+
<div id="about-railsdog-radio">
|
56
|
+
<div>
|
57
|
+
<p>
|
58
|
+
<strong>Railsdog Radio</strong> is NOT a real satellite radio store, it's a fully working demo application
|
59
|
+
for <a href="http://www.spreecommerce.com">Spree Commerce</a>. Please feel free to play around, but don't submit any information you would not consider public!</p>
|
60
|
+
<p id="more-about-railsdog-radio">
|
61
|
+
<a href="/about">More about Railsdog Radio ></a>
|
62
|
+
</p>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div id="contact-us">
|
67
|
+
<h3>Contact Us</h3>
|
68
|
+
<p>
|
69
|
+
(301)560-2000<br>
|
70
|
+
<a href="mailto:sales@railsdogradio.com">sales@railsdogradio.com</a>
|
71
|
+
</p>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div id="social">
|
75
|
+
<h3>Social</h3>
|
76
|
+
<p>
|
77
|
+
<a href="http://facebook.com/spreecommerce" id="facebook"><span>Facebook</span></a>
|
78
|
+
<a href="http://feeds2.feedburner.com/spreehq" id="rss"><span>RSS</span></a>
|
79
|
+
<a href="http://twitter.com/spreecommerce" id="twitter"><span>Twitter</span></a>
|
80
|
+
</p>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="menu">
|
84
|
+
<h3>Menu</h3>
|
85
|
+
<p>
|
86
|
+
<a href="/about">About us</a><br />
|
87
|
+
<a href="/privacy">Privacy policy</a>
|
88
|
+
</p>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
<p id="copyright">© Copyright <%= Time.zone.now.year %> Railsdog Radio. All rights reserved</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
</footer>
|
95
|
+
</body>})
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/orders/_form},
|
2
|
+
:name => %q{replace_cart_detail},
|
3
|
+
:replace => %q{#cart-detail[data-hook]},
|
4
|
+
:text => %q{<table id="cart-detail" data-hook>
|
5
|
+
<thead>
|
6
|
+
<tr data-hook="cart_items_headers">
|
7
|
+
<th colspan="2"><%= t("item") %></th>
|
8
|
+
<th><%= t("price") %></th>
|
9
|
+
<th> </th>
|
10
|
+
<th><%= t("qty") %></th>
|
11
|
+
<th> </th>
|
12
|
+
<th><%= t("total") %></th>
|
13
|
+
<th> </th>
|
14
|
+
</tr>
|
15
|
+
</thead>
|
16
|
+
<tbody id="line_items" data-hook>
|
17
|
+
<%= order_form.fields_for :line_items do |item_form| %>
|
18
|
+
<%= render 'line_item', :variant => item_form.object.variant, :line_item => item_form.object, :item_form => item_form %>
|
19
|
+
<% end %>
|
20
|
+
<tr class="actions">
|
21
|
+
<td colspan="4"> </td>
|
22
|
+
<td colspan="2">
|
23
|
+
<button type="submit" class="update"><%= t("update") %></button>
|
24
|
+
</td>
|
25
|
+
<td colspan="2"> </td>
|
26
|
+
</tr>
|
27
|
+
<tr class="totals">
|
28
|
+
<td colspan="6"> </td>
|
29
|
+
<td colspan="2" class="totals">
|
30
|
+
<%= t(:subtotal) %>: <span class="order-total"><%= order_subtotal(@order) %></span>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
</tbody>
|
34
|
+
</table>})
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/orders/_line_item},
|
2
|
+
:name => %q{replace_line_item},
|
3
|
+
:replace => %q{tr},
|
4
|
+
:text => %q{<tr class="<%= cycle('', 'alt') %>">
|
5
|
+
<td data-hook="cart_item_image">
|
6
|
+
<% if variant.images.length == 0 %>
|
7
|
+
<%= small_image(variant.product) %>
|
8
|
+
<% else %>
|
9
|
+
<%= image_tag variant.images.first.attachment.url(:small) %>
|
10
|
+
<% end %>
|
11
|
+
</td>
|
12
|
+
<td class="description" data-hook="cart_item_description">
|
13
|
+
<h4><%= link_to variant.product.name, product_path(variant.product) %></h4>
|
14
|
+
<%= variant_options variant %>
|
15
|
+
</td>
|
16
|
+
<td class="unit-price" data-hook="cart_item_price">
|
17
|
+
<%= number_to_currency(line_item.price) %>
|
18
|
+
</td>
|
19
|
+
<td class="operator">
|
20
|
+
X
|
21
|
+
</td>
|
22
|
+
<td class="quantity" data-hook="cart_item_quantity">
|
23
|
+
<%= item_form.text_field :quantity, :size => 3, :class => "line_item_quantity" %>
|
24
|
+
</td>
|
25
|
+
<td class="operator">
|
26
|
+
=
|
27
|
+
</td>
|
28
|
+
<td class="total" data-hook="cart_item_total">
|
29
|
+
<%= number_to_currency(line_item.price * line_item.quantity) unless line_item.quantity.nil? %>
|
30
|
+
</td>
|
31
|
+
<td class="total" data-hook="cart_item_delete">
|
32
|
+
<%= link_to("Remove", '#', :class => 'delete button') %>
|
33
|
+
</td>
|
34
|
+
</tr>})
|