spree_gtm 0.0.21 → 0.0.22

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: 8424f31bafa330008156cab0b008ca35a17a3c86
4
- data.tar.gz: 9d024de379a6914abe8cb39fa167a1b203d7d2de
3
+ metadata.gz: 69b2960dabeca1818dc18a09460a3786d39884d7
4
+ data.tar.gz: 5aa2318378f2a87976dab0efd556f79670be4c1c
5
5
  SHA512:
6
- metadata.gz: 0e98adbd0cfa6a6b8ae610c493e2ed1f1c8153c5f859cb25f542874d6aacfc5cbba73491e9d63a9e6c3927bf9e6ca55b825840685213b30c094d385723fbfcdb
7
- data.tar.gz: 1b07cfc5c4ef67f23ec4b033b52e24a8265fcecdecadbba2d45aabad0bf4732738ff9f45b2db9533d170e0ea9911ffbcfaf23a6cc88b7bf3475fa8a37bb7cd3f
6
+ metadata.gz: 9705ed684b66d088664d0baa276185f0c5df2face98a058d742f30db8b7b9e21cd0df439913000ee8da8ed9bb93939872889730e85b633d91d29bc9bff2363a8
7
+ data.tar.gz: 8eaee7c1520a3b61e78f79ba04946e216b31965ec8aca3e285dd9f9dde193a166af911033aeab01b5bc0f17e023f5be2cf6d341125afc543ad420255173c346a
@@ -16,14 +16,13 @@
16
16
  dataLayer.push({'transactionEmail': '<%= @order.email %>'});
17
17
  <% end %>
18
18
 
19
- <% if current_page?('/cart') && @order.number.nil? %>
20
- dataLayer.push({'cart': [
19
+ <% if current_page?('/cart') %>
20
+ dataLayer.push({
21
21
  <%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
22
22
  'name': '#{h line_item.variant.product.name}',
23
23
  'category': '',
24
24
  'price': #{h line_item.price},
25
25
  'quantity': #{h line_item.quantity}}" } .join(",") %>
26
- ]
27
26
  });
28
27
  <% end %>
29
28
 
data/spree_gtm.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_gtm'
5
- s.version = '0.0.21'
5
+ s.version = '0.0.22'
6
6
  s.summary = 'some summary here'
7
7
  s.description = 'some gem description here'
8
8
  s.required_ruby_version = '>= 2.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_gtm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav O. Pogrebnyak