spree_gtm 0.0.15 → 0.0.16

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: 68c7a090be3725ad8a368dfc8fc2d868699d57f9
4
- data.tar.gz: 91b2569964948d4a9c9a25af05b6fe51361757de
3
+ metadata.gz: 6010901756c84ae6efbc143e4fe3d959318097b6
4
+ data.tar.gz: 6b717477df0af90035ad6b8149218ba33a2fc79e
5
5
  SHA512:
6
- metadata.gz: cff1c9effa20a91f7f31e42f100e875e25422ca8966d17104a89b32e29b614a1cc193104c12a0cd3555ca7079f0a86075e9678438b9c0d961e18c0efbbccb08e
7
- data.tar.gz: bc2cffda908ee76c6b6ada78a96cf00fa8a47d02fb320535bd74071d23d50cde41a82565dcfad3953c66963ca27eaf465e3ab4109ac5159a3e927dcb0c8c7661
6
+ metadata.gz: defc3d3ff745c7b6234c1868bb0ff957f50b244a2847a7ba7bff6912e7695c7bce4dbb7e0d6e6f6fad7033167ae9fd9a6c7cef1e2bb52c07632fd67677b191f8
7
+ data.tar.gz: 1785fc210d949cf6c03ec653152d806b6d9638427cd38ebb400723519514d7a860dede0c408befe40531e3d1b74547954ad2d2697d0758d59fb7427307f7697c
@@ -16,7 +16,7 @@
16
16
  dataLayer.push({'transactionEmail': '<%= @order.email %>'});
17
17
  <% end %>
18
18
 
19
- <% if current_page?('/cart') %>
19
+ <% if current_page?('/cart') and !@order.present? %>
20
20
  dataLayer.push({'cart': [
21
21
  <%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
22
22
  'name': '#{h line_item.variant.product.name}',
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.15'
5
+ s.version = '0.0.16'
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.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav O. Pogrebnyak