spree_frontend 4.2.0.rc3 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/frontend.js +38 -5
  3. data/app/assets/javascripts/spree/frontend/account.js +1 -1
  4. data/app/assets/javascripts/spree/frontend/cart.js +1 -1
  5. data/app/assets/javascripts/spree/frontend/checkout/address.js +1 -1
  6. data/app/assets/javascripts/spree/frontend/checkout/shipment.js +15 -2
  7. data/app/assets/javascripts/spree/frontend/coupon_manager.js +1 -1
  8. data/app/assets/javascripts/spree/frontend/currency.js +43 -0
  9. data/app/assets/javascripts/spree/frontend/locale.js +13 -0
  10. data/app/assets/stylesheets/spree/frontend/application.scss +0 -3
  11. data/app/assets/stylesheets/spree/frontend/variables/bootstrap-overrides.scss +1 -0
  12. data/app/assets/stylesheets/spree/frontend/variables/helper-variables.scss +1 -0
  13. data/app/assets/stylesheets/spree/frontend/variables/variables.scss +54 -0
  14. data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +27 -22
  15. data/app/assets/stylesheets/spree/frontend/views/spree/orders/show.scss +3 -0
  16. data/app/controllers/concerns/spree/locale_urls.rb +21 -0
  17. data/app/controllers/spree/checkout_controller.rb +8 -8
  18. data/app/controllers/spree/currency_controller.rb +9 -9
  19. data/app/controllers/spree/home_controller.rb +5 -1
  20. data/app/controllers/spree/locale_controller.rb +23 -6
  21. data/app/controllers/spree/orders_controller.rb +2 -2
  22. data/app/controllers/spree/products_controller.rb +6 -5
  23. data/app/controllers/spree/store_controller.rb +11 -15
  24. data/app/controllers/spree/taxons_controller.rb +3 -2
  25. data/app/helpers/spree/addresses_helper.rb +9 -2
  26. data/app/helpers/spree/cache_helper.rb +7 -0
  27. data/app/helpers/spree/frontend_helper.rb +15 -23
  28. data/app/helpers/spree/navigation_helper.rb +6 -1
  29. data/app/helpers/spree/store_helper.rb +39 -0
  30. data/app/helpers/spree/taxons_helper.rb +1 -1
  31. data/app/models/spree/frontend_configuration.rb +2 -1
  32. data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +2 -2
  33. data/app/views/kaminari/twitter-bootstrap-4/_gap.html.erb +2 -2
  34. data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +2 -2
  35. data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +2 -2
  36. data/app/views/kaminari/twitter-bootstrap-4/_page.html.erb +2 -2
  37. data/app/views/kaminari/twitter-bootstrap-4/_paginator.html.erb +2 -2
  38. data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +2 -2
  39. data/app/views/spree/address/_form.html.erb +15 -16
  40. data/app/views/spree/addresses/edit.html.erb +2 -2
  41. data/app/views/spree/addresses/new.html.erb +2 -2
  42. data/app/views/spree/checkout/_address.html.erb +4 -6
  43. data/app/views/spree/checkout/_confirm.html.erb +1 -33
  44. data/app/views/spree/checkout/_credit_card.html.erb +2 -2
  45. data/app/views/spree/checkout/_delivery_informations.html.erb +43 -36
  46. data/app/views/spree/checkout/_summary.html.erb +3 -5
  47. data/app/views/spree/checkout/payment/_gateway.html.erb +1 -1
  48. data/app/views/spree/home/index.html.erb +21 -22
  49. data/app/views/spree/locale/index.html.erb +1 -0
  50. data/app/views/spree/orders/_coupon_code.html.erb +2 -3
  51. data/app/views/spree/orders/_line_item.html.erb +2 -2
  52. data/app/views/spree/orders/_line_item_data.html.erb +1 -1
  53. data/app/views/spree/orders/edit.html.erb +2 -3
  54. data/app/views/spree/orders/show.html.erb +1 -71
  55. data/app/views/spree/products/_cart_form.html.erb +2 -3
  56. data/app/views/spree/products/_color_option_type.html.erb +2 -3
  57. data/app/views/spree/products/_filters_desktop.html.erb +1 -2
  58. data/app/views/spree/products/_gallery.html.erb +4 -6
  59. data/app/views/spree/products/_gallery_modal.html.erb +3 -5
  60. data/app/views/spree/products/_option_type.html.erb +1 -2
  61. data/app/views/spree/products/_sort_mobile.html.erb +4 -4
  62. data/app/views/spree/products/related.html.erb +11 -5
  63. data/app/views/spree/products/show.html.erb +1 -2
  64. data/app/views/spree/shared/_carousel_4_products.html.erb +6 -12
  65. data/app/views/spree/shared/_color_select.html.erb +3 -3
  66. data/app/views/spree/shared/_currency_dropdown.html.erb +13 -0
  67. data/app/views/spree/shared/_delete_address_popup.html.erb +1 -2
  68. data/app/views/spree/shared/_error_messages.html.erb +2 -2
  69. data/app/views/spree/shared/_footer.html.erb +2 -2
  70. data/app/views/spree/shared/_head.html.erb +2 -1
  71. data/app/views/spree/shared/_header.html.erb +1 -1
  72. data/app/views/spree/shared/_internationalization_options.html.erb +31 -0
  73. data/app/views/spree/shared/_line_item.html.erb +2 -2
  74. data/app/views/spree/shared/_link_to_account.html.erb +5 -5
  75. data/app/views/spree/shared/_locale_and_currency.html.erb +6 -0
  76. data/app/views/spree/shared/_locale_dropdown.html.erb +13 -0
  77. data/app/views/spree/shared/_login.html.erb +1 -1
  78. data/app/views/spree/shared/_main_nav_bar.html.erb +1 -1
  79. data/app/views/spree/shared/_mobile_internationalization_options.html.erb +37 -0
  80. data/app/views/spree/shared/_mobile_navigation.html.erb +3 -6
  81. data/app/views/spree/shared/_nav_bar.html.erb +5 -5
  82. data/app/views/spree/shared/_no_product_available.html.erb +1 -1
  83. data/app/views/spree/shared/_option_values.html.erb +1 -1
  84. data/app/views/spree/shared/_order_details.html.erb +117 -174
  85. data/app/views/spree/shared/_payment.html.erb +2 -2
  86. data/app/views/spree/shared/_payment_sources.html.erb +2 -2
  87. data/app/views/spree/shared/_product_added_modal.html.erb +3 -3
  88. data/app/views/spree/shared/_search.html.erb +1 -2
  89. data/app/views/spree/shared/_translations.html.erb +6 -6
  90. data/app/views/spree/shared/carousel/_single.html.erb +6 -11
  91. data/app/views/spree/shared/carousel/_thumbnails.html.erb +5 -11
  92. data/app/views/spree/users/_address_controls.html.erb +1 -2
  93. data/app/views/spree/users/show.html.erb +4 -4
  94. data/config/initializers/canonical_rails.rb +1 -1
  95. data/config/routes.rb +26 -30
  96. data/lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb +1 -7
  97. data/lib/generators/spree/frontend/install/install_generator.rb +34 -0
  98. data/lib/generators/spree/frontend/install/templates/config/initializers/spree_storefront.rb +1 -0
  99. data/lib/generators/spree/frontend/install/templates/config/spree_storefront.yml +99 -0
  100. data/spree_frontend.gemspec +1 -1
  101. metadata +26 -16
  102. data/app/views/spree/shared/_change_store.html.erb +0 -25
  103. data/app/views/spree/shared/_mobile_change_store.html.erb +0 -30
  104. data/app/views/spree/shared/forbidden.html.erb +0 -0
  105. data/app/views/spree/shared/unauthorized.html.erb +0 -0
@@ -4,8 +4,8 @@
4
4
  total_pages: total number of pages
5
5
  per_page: number of items to fetch per page
6
6
  remote: data-remote
7
- paginator: the paginator that renders the pagination tags inside
8
- -%>
7
+ paginator: the paginator that renders the pagination tags inside -%>
8
+
9
9
  <% pagination_class ||= '' %>
10
10
 
11
11
  <%= paginator.render do %>
@@ -4,8 +4,8 @@
4
4
  current_page: a page object for the currently displayed page
5
5
  total_pages: total number of pages
6
6
  per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
7
+ remote: data-remote -%>
8
+
9
9
  <% unless current_page.first? %>
10
10
  <li class="prev page-item">
11
11
  <%= link_to_unless current_page.first?, inline_svg_tag('pagination-arrow-right.svg', size: '13px*16px', class: 'spree-icon-arrow-left'), url, rel: 'prev', remote: remote, class: 'page-link', 'aria-label': 'Previous page' %>
@@ -1,54 +1,54 @@
1
1
  <% address_id = address_type.chars.first %>
2
2
 
3
- <div class="inner" data-hook=<%="#{address_type}_inner" %>>
4
- <div class="form-group" id=<%="#{address_id}firstname" %>>
3
+ <div class="inner" data-hook='<%= "#{address_type}_inner" %>'>
4
+ <div class="form-group" id='<%= "#{address_id}firstname" %>'>
5
5
  <%= form.label :firstname do %>
6
6
  <%= Spree.t(:first_name) %><abbr class="required" title="required">*</abbr>
7
7
  <% end %>
8
8
  <%= form.text_field :firstname, class: 'form-control', required: true %>
9
9
  </div>
10
- <div class="form-group" id=<%="#{address_id}lastname" %>>
10
+ <div class="form-group" id='<%= "#{address_id}lastname" %>'>
11
11
  <%= form.label :lastname do %>
12
12
  <%= Spree.t(:last_name) %><abbr class="required" title="required">*</abbr>
13
13
  <% end %>
14
14
  <%= form.text_field :lastname, class: 'form-control', required: true %>
15
15
  </div>
16
16
  <% if Spree::Config[:company] %>
17
- <div class="form-group" id=<%="#{address_id}company" %>>
17
+ <div class="form-group" id='<%= "#{address_id}company" %>'>
18
18
  <%= form.label :company, Spree.t(:company) %>
19
19
  <%= form.text_field :company, class: 'form-control' %>
20
20
  </div>
21
21
  <% end %>
22
- <div class="form-group" id=<%="#{address_id}address1" %>>
22
+ <div class="form-group" id='<%= "#{address_id}address1" %>'>
23
23
  <%= form.label :address1 do %>
24
24
  <%= Spree.t(:street_address) %><abbr class="required" title="required">*</abbr>
25
25
  <% end %>
26
26
  <%= form.text_field :address1, class: 'form-control required' %>
27
27
  </div>
28
- <div class="form-group" id=<%="#{address_id}address2" %>>
28
+ <div class="form-group" id='<%= "#{address_id}address2" %>'>
29
29
  <%= form.label :address2, Spree.t(:street_address_2) %>
30
30
  <%= form.text_field :address2, class: 'form-control' %>
31
31
  </div>
32
- <div class="form-group" id=<%="#{address_id}city" %>>
32
+ <div class="form-group" id='<%= "#{address_id}city" %>'>
33
33
  <%= form.label :city do %>
34
34
  <%= Spree.t(:city) %><abbr class="required" title="required">*</abbr>
35
35
  <% end %>
36
36
  <%= form.text_field :city, class: 'form-control', required: true %>
37
37
  </div>
38
- <div class="form-group" id=<%="#{address_id}country" %>>
38
+ <div class="form-group" id='<%= "#{address_id}country" %>'>
39
39
  <%= form.label :country_id do %>
40
40
  <%= Spree.t(:country) %><abbr class="required" title="required">*</abbr>
41
41
  <% end %>
42
- <span id=<%="#{address_id}country-selection" %>>
42
+ <span id='<%= "#{address_id}country-selection" %>'>
43
43
  <%= form.collection_select :country_id, available_countries, :id, :name, {}, { class: 'form-control', required: true } %>
44
44
  </span>
45
45
  </div>
46
46
 
47
47
  <% if Spree::Config[:address_requires_state] %>
48
- <div class="form-group" id=<%="#{address_id}state" %>>
48
+ <div class="form-group" id='<%= "#{address_id}state" %>'>
49
49
  <% have_states = !address.country.states.empty? %>
50
50
  <%= form.label :state do %>
51
- <%= Spree.t(:state) %><abbr class='required' title="required" id=<%="#{address_id}state-required"%>>*</abbr>
51
+ <%= Spree.t(:state) %><abbr class='required' title="required" id='<%= "#{address_id}state-required" %>'>*</abbr>
52
52
  <% end %>
53
53
 
54
54
  <%== state_elements = [
@@ -62,28 +62,27 @@
62
62
  class: !have_states ? 'form-control' : 'form-control hidden',
63
63
  required: !have_states,
64
64
  disabled: have_states)
65
- ].join.gsub('"', "'").gsub("\n", "")
66
- %>
65
+ ].join.gsub('"', "'").gsub("\n", "") %>
67
66
  </div>
68
67
  <noscript>
69
68
  <%= form.text_field :state_name, class: 'form-control', required: true %>
70
69
  </noscript>
71
70
  <% end %>
72
71
 
73
- <div class="form-group" id=<%="#{address_id}zipcode" %>>
72
+ <div class="form-group" id='<%= "#{address_id}zipcode" %>'>
74
73
  <%= form.label :zipcode do %>
75
74
  <%= Spree.t(:zip) %><% if address.require_zipcode? %><abbr class="required" title="required">*</abbr><% end %>
76
75
  <% end %>
77
76
  <%= form.text_field :zipcode, class: 'form-control', required: address.require_zipcode? %>
78
77
  </div>
79
- <div class="form-group" id=<%="#{address_id}phone" %>>
78
+ <div class="form-group" id='<%= "#{address_id}phone" %>'>
80
79
  <%= form.label :phone do %>
81
80
  <%= Spree.t(:phone) %><% if address.require_phone? %><abbr class="required" title="required">*</abbr><% end %>
82
81
  <% end %>
83
82
  <%= form.phone_field :phone, class: 'form-control', required: address.require_phone? %>
84
83
  </div>
85
84
  <% if Spree::Config[:alternative_shipping_phone] %>
86
- <div class="form-group" id=<%="#{address_id}altphone" %>>
85
+ <div class="form-group" id='<%= "#{address_id}altphone" %>'>
87
86
  <%= form.label :alternative_phone, Spree.t(:alternative_phone) %>
88
87
  <%= form.phone_field :alternative_phone, class: 'form-control' %>
89
88
  </div>
@@ -11,8 +11,8 @@
11
11
  address_name: 'address',
12
12
  address_form: f,
13
13
  address_type: 'shipping',
14
- address: @address
15
- %>
14
+ address: @address %>
15
+
16
16
  <%= f.submit Spree.t(:update), class: 'btn btn-primary btn-block spree-btn mb-5' %>
17
17
  <% end %>
18
18
  </div>
@@ -10,8 +10,8 @@
10
10
  address_name: 'address',
11
11
  address_form: f,
12
12
  address_type: 'shipping',
13
- address: @address
14
- %>
13
+ address: @address %>
14
+
15
15
  <%= f.submit t(:save, scope: :address_book), class: 'btn btn-primary btn-block spree-btn mb-5' %>
16
16
  <% end %>
17
17
  </div>
@@ -1,11 +1,9 @@
1
- <% @addresses = try_spree_current_user ? user_available_addresses : [] %>
2
-
3
1
  <% if !try_spree_current_user || try_spree_current_user.email.blank? %>
4
2
  <div class="row">
5
3
  <div class="col-12 mb-4">
6
4
  <div class="form-group checkout-content-inner-field has-float-label">
7
5
  <%= form.email_field :email, class: 'required spree-flat-input', required: true, placeholder: Spree.t(:email) %>
8
- <%= form.label :email, class: 'text-uppercase'%>
6
+ <%= form.label :email, class: 'text-uppercase' %>
9
7
  </div>
10
8
  </div>
11
9
  </div>
@@ -28,10 +26,10 @@
28
26
  <%= label_tag :order_use_billing, Spree.t(:use_billing_address), class: 'spree-checkbox-label' %>
29
27
  </div>
30
28
  <% end %>
31
- <% if @addresses.present? %>
29
+ <% if user_available_addresses.present? %>
32
30
  <div class="select_address mb-5">
33
31
  <div class="form-group col">
34
- <% @addresses.each_with_index do |address, idx| %>
32
+ <% user_available_addresses.each_with_index do |address, idx| %>
35
33
  <div class="row mb-3" id="<%= [address_type, dom_id(address)].join('_') %>">
36
34
  <label class="form-check-label spree-radio-label col-8">
37
35
  <%= form.radio_button "#{address_name}_id", address.id, checked: (address.id == try_spree_current_user["#{address_name}_id"] || idx == 0) %>
@@ -51,7 +49,7 @@
51
49
  </div>
52
50
  <% end %>
53
51
  <%= form.fields_for address_name do |address_form| %>
54
- <div class="inner checkout-content-inner" data-hook=<%="#{address_type}_inner" %>>
52
+ <div class="inner checkout-content-inner" data-hook='<%= "#{address_type}_inner" %>'>
55
53
  <%= render partial: 'spree/addresses/form', locals: {
56
54
  address_name: address_name,
57
55
  address_form: address_form,
@@ -2,37 +2,5 @@
2
2
  <p class="checkout-content-header">
3
3
  <%= Spree.t(:summary).upcase %>
4
4
  </p>
5
- <div class='checkout-confirm-order-details' id="order_summary" data-hook>
6
- <%= render partial: 'spree/checkout/delivery_informations', locals: { class_name: 'd-none d-lg-block' } %>
7
- <div class="checkout-confirm-order-details-line-items d-flex flex-column align-items-center w-100">
8
- <div class="checkout-confirm-order-details-line-items-header d-none d-sm-block d-lg-none align-self-start mb-3">
9
- <%= Spree.t(:products) %>
10
- </div>
11
- <div class="d-table w-100">
12
- <div class="d-none d-lg-table-row text-secondary text-uppercase">
13
- <p class="d-table-cell pb-1">
14
- <%= Spree.t(:product) %>
15
- </p>
16
- <p class="d-table-cell pb-1">
17
- <%= Spree.t(:price) %>
18
- </p>
19
- <p class="d-table-cell pb-1">
20
- <%= Spree.t(:quantity) %>
21
- </p>
22
- <p class="d-table-cell pb-1">
23
- <%= Spree.t(:total) %>
24
- </p>
25
- </div>
26
- <%= render partial: 'spree/shared/line_item', collection: @order.line_items, cached: true %>
27
- </div>
28
- </div>
29
- <%= render partial: 'spree/checkout/delivery_informations', locals: { class_name: 'd-lg-none' } %>
30
- <div id="checkout-summary" class="w-100" data-hook="checkout_summary_box">
31
- <%= render partial: 'spree/checkout/summary', locals: { order: @order } %>
32
- <div data-hook="buttons">
33
- <% submit_label_key = @order.confirm? ? :place_order : :save_and_continue %>
34
- <%= submit_tag Spree.t(submit_label_key), class: 'btn btn-primary text-uppercase font-weight-bold w-100 checkout-content-save-continue-button' %>
35
- </div>
36
- </div>
37
- </div>
5
+ <%= render partial: 'spree/shared/order_details', locals: { order: @order } %>
38
6
  </div>
@@ -1,6 +1,6 @@
1
- <div id="<%= dom_id(card,'spree')%>" class="payment-sources-list-item">
1
+ <div id="<%= dom_id(card,'spree') %>" class="payment-sources-list-item">
2
2
  <label class="form-check-label spree-radio-label">
3
- <%= radio_button_tag "order[existing_card]", card.id, (card == @payment_sources.first), { class: "existing-cc-radio" } %>
3
+ <%= radio_button_tag "order[existing_card]", card.id, (card == @payment_sources.first), { class: "existing-cc-radio" } %>
4
4
  <span class="spree-radio-label-custom-input"></span>
5
5
  <%= credit_card_icon(card.cc_type) %>
6
6
  <span>****<%= card.last_digits %>,&nbsp</span>
@@ -3,42 +3,49 @@
3
3
  <%= Spree.t(:delivery_information) %>
4
4
  </div>
5
5
  <dl>
6
- <div>
7
- <dt class="text-uppercase">
8
- <%= Spree.t(:shipping_address) %>
9
- <%= checkout_edit_link %>
10
- </dt>
11
- <dd><%= sanitize @order.ship_address.to_s, tags: %w[br] %></dd>
12
- </div>
13
- <div>
14
- <dt class="text-uppercase">
15
- <%= Spree.t(:billing_address) %>
16
- <%= checkout_edit_link %>
17
- </dt>
18
- <dd><%= sanitize @order.bill_address.to_s, tags: %w[br] %></dd>
19
- </div>
20
- <div>
21
- <dt class="text-uppercase">
22
- <%= Spree.t(:shipping) %>
23
- <%= checkout_edit_link('delivery') %>
24
- </dt>
25
- <% @order.shipments.pending.each do |shipment| %>
26
- <dd><%= shipment.shipping_method&.name %> </dd>
27
- <% end %>
28
- </div>
29
- <div>
30
- <dt class="text-uppercase">
31
- <%= Spree.t(:payment) %>
32
- <%= checkout_edit_link('payment') %>
33
- </dt>
34
- <dd>
35
- <%= render collection: @order.payments.valid, partial: 'spree/shared/payment' %>
36
- </dd>
37
- <dd>
38
- <% if @order.using_store_credit? %>
39
- <%= button_tag Spree.t('store_credit.remove'), name: 'remove_store_credit', class: 'continue btn' %>
6
+ <% if order.has_step?("address") %>
7
+ <div data-hook="order-ship-address">
8
+ <dt class="text-uppercase">
9
+ <%= Spree.t(:shipping_address) %>
10
+ <%= checkout_edit_link %>
11
+ </dt>
12
+ <%= render 'spree/shared/address', address: order.ship_address %>
13
+ </div>
14
+ <div data-hook="order-bill-address">
15
+ <dt class="text-uppercase">
16
+ <%= Spree.t(:billing_address) %>
17
+ <%= checkout_edit_link %>
18
+ </dt>
19
+ <%= render 'spree/shared/address', address: order.bill_address %>
20
+ </div>
21
+ <% end %>
22
+ <% if order.has_step?("delivery") %>
23
+ <div data-hook="order-shipment">
24
+ <dt class="text-uppercase">
25
+ <%= Spree.t(:shipping) %>
26
+ <%= checkout_edit_link('delivery') %>
27
+ </dt>
28
+ <% @order.shipments.valid.each do |shipment| %>
29
+ <dd><%= shipment.shipping_method&.name %> </dd>
40
30
  <% end %>
41
- </dd>
42
- </div>
31
+ <%= render 'spree/shared/shipment_tracking', order: order if order.shipped? %>
32
+ </div>
33
+ <% end %>
34
+ <% if order.has_step?("payment") %>
35
+ <div data-hook="order-payment">
36
+ <dt class="text-uppercase">
37
+ <%= Spree.t(:payment) %>
38
+ <%= checkout_edit_link('payment') %>
39
+ </dt>
40
+ <dd>
41
+ <%= render collection: @order.payments.valid, partial: 'spree/shared/payment' %>
42
+ </dd>
43
+ <dd>
44
+ <% if @order.using_store_credit? %>
45
+ <%= button_tag Spree.t('store_credit.remove'), name: 'remove_store_credit', class: 'continue btn' %>
46
+ <% end %>
47
+ </dd>
48
+ </div>
49
+ <% end %>
43
50
  </dl>
44
51
  </div>
@@ -20,8 +20,7 @@
20
20
  data-non-shipment-tax='<%= adjustments.reject{ |adj| adj.adjustable_type== 'Spree::Shipment'}.sum(&:amount) %>'
21
21
  thousands-separator='<%= tax_total.thousands_separator %>'
22
22
  decimal-mark='<%= tax_total.decimal_mark %>'
23
- precision='<%= Money::Currency.find(order.currency).exponent %>'
24
- >
23
+ precision='<%= Money::Currency.find(order.currency).exponent %>'>
25
24
  <%= tax_total.to_html %>
26
25
  </div>
27
26
  <% end %>
@@ -29,7 +28,7 @@
29
28
  <% if order.passed_checkout_step?("address") && order.shipments.any? %>
30
29
  <% if order.has_free_shipping? %>
31
30
  <div class="d-table-cell"><%= Spree.t(:shipping) %>:</div>
32
- <div class="d-table-cell text-right"><%= Spree.t(:free) %></div>
31
+ <div class="d-table-cell text-right" data-hook="is-free-shipping"><%= Spree.t(:free) %></div>
33
32
  <% else %>
34
33
  <div class="d-table-cell"><%= Spree.t(:shipping) %>:</div>
35
34
  <% shipping_total = Spree::Money.new(order.shipments.to_a.sum(&:cost), currency: order.currency) %>
@@ -38,8 +37,7 @@
38
37
  data-currency='<%= Money::Currency.find(order.currency).symbol %>'
39
38
  thousands-separator='<%= shipping_total.thousands_separator %>'
40
39
  decimal-mark='<%= shipping_total.decimal_mark %>'
41
- precision='<%= Money::Currency.find(order.currency).exponent %>'
42
- >
40
+ precision='<%= Money::Currency.find(order.currency).exponent %>'>
43
41
  <%= shipping_total.to_html %>
44
42
  </div>
45
43
 
@@ -11,7 +11,7 @@
11
11
  <% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %>
12
12
  <%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(id: 'card_number', class: 'spree-flat-input cardNumber', size: 19, maxlength: 19, autocomplete: "off", placeholder: Spree.t(:card_number)) %>
13
13
  <span id="card_type" style="display:none;">
14
- ( <span id="looks_like" ><%= Spree.t(:card_type_is) %> <span id="type"></span></span>
14
+ ( <span id="looks_like"><%= Spree.t(:card_type_is) %> <span id="type"></span></span>
15
15
  <span id="unrecognized"><%= Spree.t(:unrecognized_card_type) %></span>
16
16
  )
17
17
  </span>
@@ -4,14 +4,14 @@
4
4
  <img class="lazyload hero-image position-absolute"
5
5
  data-src="<%= asset_path('homepage/main_banner.jpg') %>"
6
6
  data-srcset="<%= image_source_set('homepage/main_banner') %>"
7
- alt="<%= Spree.t('homepage.summer_collection')%>" />
7
+ alt="Summer Collection">
8
8
 
9
9
  <div class="hero-content">
10
10
  <div class="homepage-hero-image-text mb-2 mx-auto pb-3 pb-md-4">
11
- <%= Spree.t('homepage.summer_collection') %>
11
+ Summer Collection
12
12
  </div>
13
13
  <div>
14
- <%= link_to Spree.t('homepage.shop_now'), spree.products_path, class: 'btn btn-primary spree-btn px-5' %>
14
+ <%= link_to 'SHOP NOW', spree.products_path, class: 'btn btn-primary spree-btn px-5' %>
15
15
  </div>
16
16
  </div>
17
17
  </div>
@@ -24,10 +24,10 @@
24
24
  <img class="w-100 lazyload"
25
25
  data-src="<%= asset_path('homepage/category_banner_upper.jpg') %>"
26
26
  data-srcset="<%= image_source_set('homepage/category_banner_upper') %>"
27
- alt="<%= Spree.t('homepage.men')%>" />
27
+ alt="Men">
28
28
 
29
29
  <div class="homepage-taxon-box-text">
30
- <h3><%= Spree.t('homepage.men') %></h3>
30
+ <h3>Men</h3>
31
31
  </div>
32
32
  <% end %>
33
33
 
@@ -35,10 +35,10 @@
35
35
  <img class="w-100 lazyload"
36
36
  data-src="<%= asset_path('homepage/category_banner_lower.jpg') %>"
37
37
  data-srcset="<%= image_source_set('homepage/category_banner_lower') %>"
38
- alt="<%= Spree.t('homepage.sportswear')%>" />
38
+ alt="Sportswear">
39
39
 
40
- <div class="homepage-taxon-box-text" role="img" aria-label="<%= Spree.t('homepage.sportswear') %>">
41
- <h3><%= Spree.t('homepage.sportswear') %></h3>
40
+ <div class="homepage-taxon-box-text" role="img" aria-label="Sportswear">
41
+ <h3>Sportswear</h3>
42
42
  </div>
43
43
  <% end %>
44
44
 
@@ -50,10 +50,10 @@
50
50
  <img class="w-100 lazyload"
51
51
  data-src="<%= asset_path('homepage/big_category_banner.jpg') %>"
52
52
  data-srcset="<%= image_source_set('homepage/big_category_banner') %>"
53
- alt="<%= Spree.t('homepage.women')%>" />
53
+ alt="Women">
54
54
 
55
55
  <div class="homepage-taxon-box-text">
56
- <h3><%= Spree.t('homepage.women') %></h3>
56
+ <h3>Women</h3>
57
57
  </div>
58
58
  <% end %>
59
59
 
@@ -65,16 +65,15 @@
65
65
 
66
66
  <div class="homepage-fashion-trends-box mb-3">
67
67
  <div class="text-center">
68
- <div class="homepage-fashion-trends-box-summer-text mb-1"><%= Spree.t('homepage.summer_2020') %></div>
69
- <div class="homepage-fashion-trends-box-fashion-trends-text mb-2"><%= Spree.t('homepage.fashion_trends') %></div>
68
+ <div class="homepage-fashion-trends-box-summer-text mb-1">Summer 2021</div>
69
+ <div class="homepage-fashion-trends-box-fashion-trends-text mb-2">FASHION TRENDS</div>
70
70
  <div class="homepage-fashion-trends-box-description-text text-center mb-3">
71
- <%= Spree.t('homepage.fashion_trends_note') %>
71
+ Want to rock this season’s hottest trend in style? These are the top fashion from Summer 2020 Fashion Weeks that are coming our way this season.
72
72
  </div>
73
- <%= link_to Spree.t('homepage.read_more'), spree.nested_taxons_path('trending'), class: 'btn px-5 spree-btn btn-outline-primary' %>
73
+ <%= link_to 'READ MORE', spree.nested_taxons_path('trending'), class: 'btn px-5 spree-btn btn-outline-primary' %>
74
74
  </div>
75
75
  </div>
76
76
 
77
-
78
77
  <div data-product-carousel data-product-carousel-taxon-id='trending' class="mb-3"></div>
79
78
 
80
79
  <div class="container">
@@ -85,14 +84,14 @@
85
84
  <img class="w-100 lazyload"
86
85
  data-src="<%= asset_path('homepage/promo_banner_left.jpg') %>"
87
86
  data-srcset="<%= image_source_set('homepage/promo_banner_left') %>"
88
- alt="<%= Spree.t('homepage.new_collection')%>" />
87
+ alt="NEW COLLECTION">
89
88
 
90
- <div class="homepage-bottom-box-inner" role="img" aria-label="<%= Spree.t('homepage.new_collection') %>">
89
+ <div class="homepage-bottom-box-inner" role="img" aria-label="New Collection">
91
90
  <div class="homepage-bottom-box-inner-small-text">
92
- <%= Spree.t('homepage.new_collection') %>
91
+ New Collection
93
92
  </div>
94
93
  <div class="homepage-bottom-box-inner-big-text">
95
- <%= Spree.t('homepage.streetstyle') %>
94
+ Streetstyle
96
95
  </div>
97
96
  </div>
98
97
  </div>
@@ -105,14 +104,14 @@
105
104
  <img class="w-100 lazyload"
106
105
  data-src="<%= asset_path('homepage/promo_banner_right.jpg') %>"
107
106
  data-srcset="<%= image_source_set('homepage/promo_banner_right') %>"
108
- alt="<%= Spree.t('homepage.summer_sale')%>" />
107
+ alt="Summer Sale">
109
108
 
110
109
  <div class="homepage-bottom-box-inner">
111
110
  <div class="homepage-bottom-box-inner-small-text">
112
- <%= Spree.t('homepage.summer_sale') %>
111
+ Summer Sale
113
112
  </div>
114
113
  <div class="homepage-bottom-box-inner-big-text">
115
- <%= Spree.t('homepage.up_to_60') %>
114
+ Up To 60%
116
115
  </div>
117
116
  </div>
118
117
  </div>