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,83 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/orders/show},
|
2
|
+
:name => %q{replace_orders_show},
|
3
|
+
:replace => %q{#order[data-hook]},
|
4
|
+
:text => %q{<% @body_id = 'cart' %>
|
5
|
+
|
6
|
+
<div id="content" role="content">
|
7
|
+
<h1>Order details</h1>
|
8
|
+
|
9
|
+
<table id="cart-detail">
|
10
|
+
<thead>
|
11
|
+
<tr>
|
12
|
+
<th colspan="2"><%= t("item") %></th>
|
13
|
+
<th><%= t("price") %></th>
|
14
|
+
<th> </th>
|
15
|
+
<th><%= t("qty") %></th>
|
16
|
+
<th> </th>
|
17
|
+
<th><%= t("total") %></th>
|
18
|
+
</tr>
|
19
|
+
</thead>
|
20
|
+
<tbody id="line_items">
|
21
|
+
<% @order.line_items.each do |line_item| %>
|
22
|
+
<%- variant = line_item.variant -%>
|
23
|
+
<tr class="<%= cycle('', 'alt') %>">
|
24
|
+
<td class="image">
|
25
|
+
<% if variant.images.length == 0 %>
|
26
|
+
<%= small_image(variant.product) %>
|
27
|
+
<% else %>
|
28
|
+
<%= image_tag variant.images.first.attachment.url(:small) %>
|
29
|
+
<% end %>
|
30
|
+
</td>
|
31
|
+
<td class="description">
|
32
|
+
<h4><%= link_to variant.product.name, product_path(variant.product) %></h4>
|
33
|
+
<%= variant_options variant %>
|
34
|
+
</td>
|
35
|
+
<td class="unit-price">
|
36
|
+
<%= number_to_currency line_item.price %>
|
37
|
+
</td>
|
38
|
+
<td class="operator">
|
39
|
+
X
|
40
|
+
</td>
|
41
|
+
<td class="quantity">
|
42
|
+
<%= line_item.quantity %>
|
43
|
+
</td>
|
44
|
+
<td class="operator">
|
45
|
+
=
|
46
|
+
</td>
|
47
|
+
<td class="total">
|
48
|
+
<%= number_to_currency (line_item.price * line_item.quantity) unless line_item.quantity.nil? %>
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<% end %>
|
52
|
+
<tr class="totals">
|
53
|
+
<td colspan="6">Item Subtotal</td>
|
54
|
+
<td class="totals">
|
55
|
+
<%= number_to_currency @order.item_total %>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<% @order.adjustments.each do |adjustment| %>
|
59
|
+
<tr class="totals">
|
60
|
+
<td colspan="6">
|
61
|
+
<%= adjustment.label %>
|
62
|
+
</td>
|
63
|
+
<td class="totals">
|
64
|
+
<%= number_to_currency adjustment.amount %>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<% end %>
|
68
|
+
<tr class="totals">
|
69
|
+
<td colspan="6">Total</td>
|
70
|
+
<td class="totals">
|
71
|
+
<%= number_to_currency @order.total %>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
</tbody>
|
75
|
+
</table>
|
76
|
+
|
77
|
+
<p class="actions">
|
78
|
+
<%=link_to t('back_to_store'), root_path, :class => 'continue' %>
|
79
|
+
or
|
80
|
+
<%= link_to t("my_account"), account_path, :class => 'button' %>
|
81
|
+
</p>
|
82
|
+
|
83
|
+
</div>})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/orders/edit},
|
2
|
+
:name => %q{replace_outside_cart_form},
|
3
|
+
:replace => %q{[data-hook='outside_cart_form']},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<%= form_for(@order, :url => update_cart_path, :html=>{:id=>'updatecart'}) do |order_form| %>
|
6
|
+
|
7
|
+
<h3>You have <%= pluralize @order.line_items.length, 'item' %> in your cart</h3>
|
8
|
+
|
9
|
+
<div data-hook="cart_items">
|
10
|
+
<%= render :partial => 'form', :locals => {:order_form => order_form} %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<p class="actions">
|
14
|
+
<%=link_to t("continue_shopping"), products_path, :class => 'continue' %>
|
15
|
+
or
|
16
|
+
<%= link_to t("checkout"), checkout_path, :class => 'button checkout' %>
|
17
|
+
</p>
|
18
|
+
|
19
|
+
<% end %>},
|
20
|
+
:disabled => false,
|
21
|
+
:sequence => 100)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
if Rails.application.railties.all.map(&:railtie_name).include? "spree_related_products"
|
2
|
+
|
3
|
+
Deface::Override.new(:virtual_path => %q{spree/products/show},
|
4
|
+
:name => %q{add_related_products_to_cart_form},
|
5
|
+
:replace => %q{[data-hook='cart_form'] hr},
|
6
|
+
:sequence => {:after => "replace_cart_form" },
|
7
|
+
:text => %q{<% if @product.cross_sells.present? %>
|
8
|
+
<div class="extras">
|
9
|
+
<% @product.cross_sells.each do |cross_sell| %>
|
10
|
+
<p>
|
11
|
+
<%= check_box_tag "variants[#{cross_sell.master.id}]", 1 %>
|
12
|
+
<label for="">
|
13
|
+
Add <em>'<%= link_to cross_sell.name, product_url(cross_sell) %>'</em> for <%=number_to_currency(cross_sell.price) %>
|
14
|
+
</label>
|
15
|
+
</p>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
18
|
+
<% end %>})
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/products/show},
|
2
|
+
:name => %q{add_taxonomies_to_product_show},
|
3
|
+
:insert_after => %q{[data-hook='product_show']},
|
4
|
+
:sequence => {:after => 'add_recently_viewed_products_to_products_show'},
|
5
|
+
:text => %q{<%= content_for :sidebar do %>
|
6
|
+
<%= render 'spree/shared/all_products' %>
|
7
|
+
<% end %>})
|
@@ -0,0 +1,13 @@
|
|
1
|
+
if Rails.application.railties.all.map(&:railtie_name).include? "spree_email_to_friend"
|
2
|
+
|
3
|
+
Deface::Override.new(:virtual_path => "spree/products/show",
|
4
|
+
:name => "converted_product_description_351026984",
|
5
|
+
:disabled => true)
|
6
|
+
|
7
|
+
Deface::Override.new(:virtual_path => "spree/products/show",
|
8
|
+
:name => "add_email_to_friend_under_add_to_cart_button",
|
9
|
+
:insert_before => '[data-hook="product_description"]',
|
10
|
+
:text => "<p class=\"email_to_friend\"><%= link_to t('email_to_friend.send_to_friend'), email_to_friend_url('product', @product), :class => 'button' %></p>",
|
11
|
+
:squence => {:after => 'converted_product_description_351026984'})
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/products/show},
|
2
|
+
:name => %q{replace_cart_form},
|
3
|
+
:replace => %q{[data-hook='cart_form']},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<div id="cart-form" data-hook="cart_form">
|
6
|
+
<%= form_for :order, :url => populate_orders_url do |f| %>
|
7
|
+
|
8
|
+
<%= hidden_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), 1, :class => "title", :size => 3 %>
|
9
|
+
|
10
|
+
<dl class="part-numbers clearfix">
|
11
|
+
<dt>PART NUMBER</dt>
|
12
|
+
<dd><%= @product.sku %></dd>
|
13
|
+
</dl>
|
14
|
+
<dl class="prices clearfix">
|
15
|
+
<dt>Price</dt>
|
16
|
+
<dd><span class="price discounted"><%= number_to_currency @product.cost_price %></span></dd>
|
17
|
+
<dt>Sale Price</dt>
|
18
|
+
<dd><span class="price selling"><%= number_to_currency @product.price %></span></dd>
|
19
|
+
<!-- #Coming soon
|
20
|
+
<dt>after $xx.00 rebate</dt>
|
21
|
+
<dd><span class="price">$xx.99</span></dd>
|
22
|
+
-->
|
23
|
+
</dl>
|
24
|
+
<dl class="shipping">
|
25
|
+
<dt>Shipping</dt>
|
26
|
+
<dd><span class="price">FREE</span></dd>
|
27
|
+
</dl>
|
28
|
+
<dl class="stock">
|
29
|
+
<dt>In Stock</dt>
|
30
|
+
<dd><span class="stock"><%= @product.has_stock? ? "YES" : "NO" %></span></dd>
|
31
|
+
</dl>
|
32
|
+
<hr />
|
33
|
+
|
34
|
+
|
35
|
+
<hr />
|
36
|
+
|
37
|
+
<p><button type="submit">Add to cart</button></p>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
</div>},
|
41
|
+
:disabled => true)
|
42
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/products/show},
|
2
|
+
:name => %q{replace_product_show},
|
3
|
+
:replace => %q{[data-hook='product_show']},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<div data-hook="product_show">
|
6
|
+
<% @body_id = 'product-details' %>
|
7
|
+
|
8
|
+
<%= content_for :banner do %>
|
9
|
+
<h1>Products</h1>
|
10
|
+
<%= image_tag "store/satellite-radios-bg.jpg", :alt => "Satellite Radios" %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<h2><%= @product.name %></h2>
|
14
|
+
<div id="product-images" data-hook>
|
15
|
+
<div id="main-image">
|
16
|
+
<%= render 'image' %>
|
17
|
+
</div>
|
18
|
+
<div id="thumbnails" data-hook>
|
19
|
+
<%= render 'thumbnails', :product => @product %>
|
20
|
+
</div>
|
21
|
+
<br><br>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div id="cart-form" data-hook="cart_form">
|
25
|
+
<%= form_for :order, :url => populate_orders_url do |f| %>
|
26
|
+
<div data-hook="inside_product_cart_form" %>
|
27
|
+
<%= hidden_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), 1, :class => "title", :size => 3 %>
|
28
|
+
|
29
|
+
<dl class="part-numbers clearfix">
|
30
|
+
<dt>PART NUMBER</dt>
|
31
|
+
<dd><%= @product.sku %></dd>
|
32
|
+
</dl>
|
33
|
+
|
34
|
+
<dl class="prices clearfix">
|
35
|
+
<dt>Price</dt>
|
36
|
+
<dd><span class="price discounted"><%= number_to_currency (@product.price * 1.2) %></span></dd>
|
37
|
+
<dt>Sale Price</dt>
|
38
|
+
<dd><span class="price selling"><%= number_to_currency (@product.price) %></span></dd>
|
39
|
+
</dl>
|
40
|
+
<dl class="shipping">
|
41
|
+
<dt>Shipping</dt>
|
42
|
+
<dd><span class="price">FREE</span></dd>
|
43
|
+
</dl>
|
44
|
+
<dl class="stock">
|
45
|
+
<dt>In Stock</dt>
|
46
|
+
<dd><span class="stock"><%= @product.has_stock? ? "YES" : "NO" %></span></dd>
|
47
|
+
</dl>
|
48
|
+
|
49
|
+
<hr />
|
50
|
+
|
51
|
+
<% if @product.has_variants? %>
|
52
|
+
<div id="product-variants" class="columns five alpha">
|
53
|
+
<h3 class="product-section-title"><%= t(:variants) %></h3>
|
54
|
+
<ul>
|
55
|
+
<% has_checked = false
|
56
|
+
@product.variants.active.each_with_index do |v,index|
|
57
|
+
next if v.option_values.empty? || (!v.in_stock && !Spree::Config[:show_zero_stock_products])
|
58
|
+
checked = !has_checked && (v.in_stock || Spree::Config[:allow_backorders])
|
59
|
+
has_checked = true if checked %>
|
60
|
+
<li>
|
61
|
+
<%= radio_button_tag "products[#{@product.id}]", v.id, checked, :disabled => !v.in_stock && !Spree::Config[:allow_backorders] %>
|
62
|
+
<label for="<%= ['products', @product.id, v.id].join('_') %>">
|
63
|
+
<span class="variant-description">
|
64
|
+
<%= variant_options v %>
|
65
|
+
</span>
|
66
|
+
<% if variant_price_diff v %>
|
67
|
+
<span class="price diff"><%= variant_price_diff v %></span>
|
68
|
+
<% end %>
|
69
|
+
</label>
|
70
|
+
</li>
|
71
|
+
<% end%>
|
72
|
+
</ul>
|
73
|
+
</div>
|
74
|
+
<% end%>
|
75
|
+
|
76
|
+
<p><button type="submit">Add to cart</button></p>
|
77
|
+
<% end %>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<div id="product-description" data-hook="product_description">
|
82
|
+
<%= product_description(@product) rescue t("product_has_no_description") %>
|
83
|
+
</div>
|
84
|
+
</div>},
|
85
|
+
:disabled => false,
|
86
|
+
:sequence => 100)
|
87
|
+
|
@@ -0,0 +1,4 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/shared/_head},
|
2
|
+
:name => %q{add_to_head},
|
3
|
+
:insert_after => %q{code[erb-loud]:contains('stylesheet_link_tag')},
|
4
|
+
:text => %q{<link href="<%=request.protocol%>fonts.googleapis.com/css?family=Arvo:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">})
|
@@ -0,0 +1,16 @@
|
|
1
|
+
if Rails.application.railties.all.map(&:railtie_name).include? "spree_recently_viewed"
|
2
|
+
|
3
|
+
Deface::Override.new(:virtual_path => 'spree/shared/_products',
|
4
|
+
:name => 'add_recently_viewed_products_to_products_index',
|
5
|
+
:disabled => true)
|
6
|
+
|
7
|
+
Deface::Override.new(:virtual_path => 'spree/products/show',
|
8
|
+
:name => 'add_recently_viewed_products_to_products_show',
|
9
|
+
:disabled => true)
|
10
|
+
|
11
|
+
Deface::Override.new(:virtual_path => 'spree/shared/_recently_viewed_products',
|
12
|
+
:name => 'change_title',
|
13
|
+
:replace => 'h3',
|
14
|
+
:text => '<h2>Recently Viewed</h2>')
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/shared/_products},
|
2
|
+
:name => %q{replace_products},
|
3
|
+
:replace => %q{#products[data-hook]},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<% @body_id = 'product-list' %>
|
6
|
+
|
7
|
+
<%= render 'spree/shared/product_banner' %>
|
8
|
+
|
9
|
+
<div class="list" id="products" data-hook>
|
10
|
+
<% products.each do |product| %>
|
11
|
+
<% if Spree::Config[:show_zero_stock_products] || product.has_stock? %>
|
12
|
+
<div class="product">
|
13
|
+
<h2><%= link_to product.name, product_path(product) %></h2>
|
14
|
+
<p class="image">
|
15
|
+
<%= link_to product_image(product), product %>
|
16
|
+
</p>
|
17
|
+
<div class="details">
|
18
|
+
<p class="stock"><%= product.has_stock? ? "IN STOCK" : "OUT OF STOCK" %></p>
|
19
|
+
<p class="prices">
|
20
|
+
<span class="price discounted"><%= number_to_currency(product.price * 1.2) %></span>
|
21
|
+
<span class="price selling"><%= number_to_currency(product.price) %></span></p>
|
22
|
+
<p><%= link_to 'View More', product_path(product), :class => 'button' %></p>
|
23
|
+
</div>
|
24
|
+
<p class="description">
|
25
|
+
<%= truncate strip_tags(product.description), :length => 300 %>
|
26
|
+
</p>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
<% end %>
|
30
|
+
</div>})
|
@@ -0,0 +1,6 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/shared/_login},
|
2
|
+
:name => %q{tweak_remember_me_login},
|
3
|
+
:replace => %q{p label},
|
4
|
+
:text => %q{<%= f.check_box :remember_me %>
|
5
|
+
<%= f.label :remember_me, t('remember_me'), :class => 'tick' %>
|
6
|
+
<%= link_to t("forgot_password"), new_user_password_path, {:style => "float:right;"} %>})
|
@@ -0,0 +1,6 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/taxons/show},
|
2
|
+
:name => %q{replace_taxon_children},
|
3
|
+
:replace => %q{[data-hook='taxon_children']},
|
4
|
+
:text => %q{<div data-hook="taxon_products">
|
5
|
+
<%= render :partial => "spree/shared/products", :locals => {:products => @products, :taxon => @taxon } %>
|
6
|
+
</div>})
|
@@ -0,0 +1,7 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/taxons/show},
|
2
|
+
:name => %q{replace_taxon_sidebar_navigation},
|
3
|
+
:replace => %q{[data-hook='taxon_sidebar_navigation']},
|
4
|
+
:closing_selector => %q{},
|
5
|
+
:text => %q{<div data-hook="taxon_sidebar_navigation">
|
6
|
+
<%= render :partial => "spree/shared/taxonomies" %></div>
|
7
|
+
</div>})
|
@@ -0,0 +1,14 @@
|
|
1
|
+
if Rails.application.railties.all.map(&:railtie_name).include? "spree_social"
|
2
|
+
|
3
|
+
Deface::Override.new(:virtual_path => "spree/user_registrations/new",
|
4
|
+
:name => "add_socials_to_login_extras",
|
5
|
+
:disabled => true)
|
6
|
+
|
7
|
+
Deface::Override.new(:virtual_path => "spree/user_sessions/new",
|
8
|
+
:name => "add_socials_to_login_extras",
|
9
|
+
:disabled => true)
|
10
|
+
|
11
|
+
Deface::Override.new(:virtual_path => "spree/users/show",
|
12
|
+
:name => "add_socials_to_account_summary",
|
13
|
+
:disabled => true)
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/user_registrations/new},
|
2
|
+
:name => %q{replace_user_registration_new},
|
3
|
+
:replace => %q{#new-customer},
|
4
|
+
:text => %q{<div id="new_customers">
|
5
|
+
<h2>New Customers</h2>
|
6
|
+
<p>You can register for a new account below:</p>
|
7
|
+
<%= form_for :user, :url => spree.user_registration_path(@user) do |f| %>
|
8
|
+
<%= render :partial => 'spree/shared/user_form', :locals => { :f => f } %>
|
9
|
+
<p><%= f.submit t(:create), :class => 'button primary' %></p>
|
10
|
+
<% end %>
|
11
|
+
</div>})
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/user_sessions/new},
|
2
|
+
:name => %q{replace_user_sessions_new},
|
3
|
+
:replace => %q{#existing-customer},
|
4
|
+
:text => %q{
|
5
|
+
<% if Rails.application.railties.all.map(&:railtie_name).include? "spree_social" %>
|
6
|
+
<%= render 'spree/shared/social_users' %>
|
7
|
+
<% end %>
|
8
|
+
<div id="local_login">
|
9
|
+
|
10
|
+
<div id="existing-customer">
|
11
|
+
<h2>Existing Customers</h2>
|
12
|
+
<p>If you've already registered for an account you can sign in here:</p>
|
13
|
+
<%= render :partial => 'spree/shared/login' %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<hr/>
|
17
|
+
|
18
|
+
<div id="new_customers">
|
19
|
+
<h2>New Customers</h2>
|
20
|
+
<p>You can register for a new account here on RailsDog Radio below:</p>
|
21
|
+
<%= form_for :user, :url => spree.user_registration_path(@user) do |f| %>
|
22
|
+
|
23
|
+
<% if session[:omniauth] %>
|
24
|
+
<p>
|
25
|
+
<%= f.label :email, t("email") %>
|
26
|
+
<%= f.text_field :email, :class => 'title' %>
|
27
|
+
</p>
|
28
|
+
<% else %>
|
29
|
+
<%= render 'spree/shared/user_form', :f => f %>
|
30
|
+
<% end %>
|
31
|
+
<p>
|
32
|
+
<button type="submit">Register</button>
|
33
|
+
</p>
|
34
|
+
<% end %>
|
35
|
+
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
})
|
@@ -0,0 +1,13 @@
|
|
1
|
+
if Rails.application.railties.all.map(&:railtie_name).include? "spree_wishlist"
|
2
|
+
|
3
|
+
Deface::Override.new(:virtual_path => "spree/users/show",
|
4
|
+
:name => "add_wishlists_to_account_my_orders",
|
5
|
+
:text => %q{<h3>
|
6
|
+
My Wishlists:
|
7
|
+
<% if current_user.wishlists.present? %>
|
8
|
+
<%= raw current_user.wishlists.map { |wl| link_to(wl.name, wl) }.join(", ") %>,
|
9
|
+
<% end %>
|
10
|
+
<%= link_to "Create New Wish List", new_wishlist_url %>
|
11
|
+
</h3>})
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
if Rails.application.railties.all.map(&:railtie_name).include? "spree_social"
|
2
|
+
|
3
|
+
Deface::Override.new(:virtual_path => "spree/users/show",
|
4
|
+
:name => "replace_account_summary_with_social_logins",
|
5
|
+
:replace => "[data-hook='account_summary']",
|
6
|
+
:sequence => {:after => 'replace_account_my_orders'},
|
7
|
+
:text => %q{<% if @user.user_authentications.present? %>
|
8
|
+
<h3>My Logins</h3>
|
9
|
+
<table id="cart-detail">
|
10
|
+
<thead>
|
11
|
+
<tr>
|
12
|
+
<th>Provider</th>
|
13
|
+
<th>Nickname</th>
|
14
|
+
<th>Linked</th>
|
15
|
+
<th> </th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<% @user.user_authentications.each do |auth| %>
|
20
|
+
<tr class="<%= cycle('even', 'odd') %>">
|
21
|
+
<td class="normal">
|
22
|
+
<%= image_tag "/assets/store/#{auth.provider}_32.png", :size => "32x32" %>
|
23
|
+
<%= auth.provider.capitalize %>
|
24
|
+
</td>
|
25
|
+
<td class="normal"><%= auth.nickname %></td>
|
26
|
+
<td class="normal"><%= auth.created_at.to_date%></td>
|
27
|
+
<td class="normal"><%= link_to( "Unlink", auth, :confirm => 'Are you sure you want to remove unlink this account', :method => :delete, :class => "remove") %></td>
|
28
|
+
</tr>
|
29
|
+
<% end %>
|
30
|
+
</tbody>
|
31
|
+
</table>
|
32
|
+
|
33
|
+
<hr />
|
34
|
+
<% end %>
|
35
|
+
|
36
|
+
|
37
|
+
<h3>Link Accounts</h3>
|
38
|
+
<p>You can link your RailsDog Radio account with an account you already have on any of the following sites:</p>
|
39
|
+
<% Spree::AuthenticationMethod.where(:environment => ::Rails.env).each do |user| %>
|
40
|
+
<%= link_to(image_tag("/assets/store/#{user.provider}_32.png", :size => "32x32", :alt => "#{user.provider}"), "/users/auth/#{user.provider}", :title => "Sign in with #{user.provider}") if user.active %>
|
41
|
+
<% end %>
|
42
|
+
})
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => %q{spree/users/show},
|
2
|
+
:name => %q{replace_account_my_orders},
|
3
|
+
:replace => %q{[data-hook='account_my_orders']},
|
4
|
+
:sequence => {:after => 'remove_account_summary' },
|
5
|
+
:text => %q{<div data-hook="account_my_orders">
|
6
|
+
<h3><%= t("my_orders") %></h3>
|
7
|
+
<% if @orders.present? %>
|
8
|
+
<table id="cart-detail">
|
9
|
+
<thead>
|
10
|
+
<tr>
|
11
|
+
<th><%= t("order_number") %></th>
|
12
|
+
<th><%= t("order_date") %></th>
|
13
|
+
<th><%= t("status") %></th>
|
14
|
+
<th><%= t("shipment_state") %></th>
|
15
|
+
<th><%= t("total") %></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<% @orders.each do |order| %>
|
20
|
+
<tr class="<%= cycle('even', 'odd') %>">
|
21
|
+
<td><%= link_to order.number, order_url(order) %></td>
|
22
|
+
<td class="normal"><%=order.created_at.to_date%></td>
|
23
|
+
<td class="normal"><%= t(order.state).titleize %></td>
|
24
|
+
<td class="normal"><%= order.shipment_state.capitalize %></td>
|
25
|
+
<td class="normal"><%= number_to_currency order.total %></td>
|
26
|
+
</tr>
|
27
|
+
<% end %>
|
28
|
+
</tbody>
|
29
|
+
</table>
|
30
|
+
<% else %>
|
31
|
+
<p><%= t(:you_have_no_orders_yet) %></p>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
34
|
+
<div data-hook="account_summary"></div>
|
35
|
+
|
36
|
+
})
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => 'spree/wishlists/new',
|
2
|
+
:name => 'replace_new_wishlist_form',
|
3
|
+
:replace_contents => "code[erb-loud]:contains('form_for')",
|
4
|
+
:closing_selector => "code[erb-silent]:contains('end')",
|
5
|
+
:text => %q{<p><%= f.label :name, t(:name), :class => "inline" %>: <%= f.text_field :name %></p>
|
6
|
+
<p><%= f.check_box :is_private %> <%= f.label :is_private, "Keep this list private, for my eyes only!", :class => "inline" %></p>
|
7
|
+
<div class="submit">
|
8
|
+
<button type="submit" class="blue">Create Wish List</button>
|
9
|
+
</div>})
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<div id="all-products" class="list-box">
|
2
|
+
<% if @taxon.present? && @taxon.children.present? %>
|
3
|
+
<h2>More Products</h2>
|
4
|
+
<ul>
|
5
|
+
<% @taxon.children.each_with_index do |taxon,i| %>
|
6
|
+
<li><%= raw link_to(taxon.name, seo_url(taxon)) %></li>
|
7
|
+
<% end %>
|
8
|
+
</ul>
|
9
|
+
<% else %>
|
10
|
+
<h2>All Products</h2>
|
11
|
+
<ul>
|
12
|
+
<% Spree::Taxonomy.where(:name => "Categories").first.root.children.each_with_index do |taxon,i| %>
|
13
|
+
<li><%= raw link_to(taxon.name, seo_url(taxon)) %></li>
|
14
|
+
<% end %>
|
15
|
+
</ul>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
18
|
+
<% if Rails.application.railties.all.map(&:railtie_name).include? "spree_recently_viewed" %>
|
19
|
+
<div id="recent-products" class="list-box">
|
20
|
+
<%= render "spree/shared/recently_viewed_products" %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|