spree_frontend 2.1.7 → 2.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d2dc168dd91061621b526b53a307ed2202bb4d5
|
4
|
+
data.tar.gz: 2d1845087158cdcdf3f4ece7d674a61a33f96bf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f530fc965cd1762abd43daf3b7e43dfbe47324e7d571063f636693837ad1b0b2bd9a5336fc63879ee85fafc7ef26e120c3b8e174ec204cbbbf55d5ed582a274c
|
7
|
+
data.tar.gz: a3426a08ab4a22877e3e7149d213b6045c5c75add67d5c8ddf2d5c53fe7e17031fde5b90f497c50e340913ebfd91f545e405fda1bd809e4d7470e991830a6dd3
|
@@ -37,8 +37,9 @@ $ ->
|
|
37
37
|
radios = ($ '#product-variants input[type="radio"]')
|
38
38
|
|
39
39
|
if radios.length > 0
|
40
|
-
|
41
|
-
Spree.
|
40
|
+
selectedRadio = ($ '#product-variants input[type="radio"][checked="checked"]')
|
41
|
+
Spree.showVariantImages selectedRadio.attr('value')
|
42
|
+
Spree.updateVariantPrice selectedRadio
|
42
43
|
|
43
44
|
Spree.addImageHandlers()
|
44
45
|
|
@@ -28,5 +28,5 @@
|
|
28
28
|
</div>
|
29
29
|
|
30
30
|
<% if I18n.locale != :en %>
|
31
|
-
<script src="<%= assets_prefix %>/jquery.validate/localization/messages_<%= I18n.locale %>.js"></script>
|
31
|
+
<script src="<%= assets_prefix %>/jquery.validate/localization/messages_<%= I18n.locale.to_s.downcase.gsub("-", "") %>.js"></script>
|
32
32
|
<% end %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<ul>
|
8
8
|
<% @product.variants_and_option_values(current_currency).each_with_index do |variant, index| %>
|
9
9
|
<li>
|
10
|
-
<%= radio_button_tag "products[#{@product.id}]", variant.id, index == 0, 'data-price' =>
|
10
|
+
<%= radio_button_tag "products[#{@product.id}]", variant.id, index == 0, 'data-price' => variant.price_in(current_currency).money %>
|
11
11
|
<label for="<%= ['products', @product.id, variant.id].join('_') %>">
|
12
12
|
<span class="variant-description">
|
13
13
|
<%= variant_options variant %>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
<% if @product.price_in(current_currency) and !@product.price.nil? %>
|
26
26
|
<div data-hook="product_price" class="columns five <% if !@product.has_variants? %> alpha <% else %> omega <% end %>">
|
27
|
-
|
27
|
+
|
28
28
|
<div id="product-price">
|
29
29
|
<h6 class="product-section-title"><%= Spree.t(:price) %></h6>
|
30
30
|
<div>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
<% if @product.master.in_stock? %>
|
38
38
|
<link itemprop="availability" href="http://schema.org/InStock" />
|
39
|
-
<% end %>
|
39
|
+
<% end %>
|
40
40
|
</div>
|
41
41
|
|
42
42
|
<div class="add-to-cart">
|
@@ -52,6 +52,6 @@
|
|
52
52
|
<br>
|
53
53
|
<div><span class="price selling" itemprop="price"><%= Spree.t('product_not_available_in_this_currency') %></span></div>
|
54
54
|
</div>
|
55
|
-
<% end %>
|
55
|
+
<% end %>
|
56
56
|
</div>
|
57
57
|
<% end %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
'revenue': '<%= @order.total %>', // Grand Total.
|
18
18
|
'shipping': '<%= @order.adjustments.shipping.sum(:amount) %>', // Shipping.
|
19
19
|
'tax': '<%= @order.adjustments.tax.sum(:amount) %>', // Tax.
|
20
|
-
'
|
20
|
+
'currency': '<%= current_currency %>' // local currency code.
|
21
21
|
});
|
22
22
|
<% @order.line_items.each do |line_item| %>
|
23
23
|
ga('ecommerce:addItem', {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.1.
|
19
|
+
version: 2.1.8
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.1.
|
26
|
+
version: 2.1.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spree_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.1.
|
33
|
+
version: 2.1.8
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.1.
|
40
|
+
version: 2.1.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: canonical-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -529,7 +529,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
529
529
|
requirements:
|
530
530
|
- none
|
531
531
|
rubyforge_project: spree_frontend
|
532
|
-
rubygems_version: 2.2.
|
532
|
+
rubygems_version: 2.2.2
|
533
533
|
signing_key:
|
534
534
|
specification_version: 4
|
535
535
|
summary: Frontend e-commerce functionality for the Spree project.
|