spree_gtm 0.0.11 → 0.0.12

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: 61c730af50d1474edcd8d4457d9503cd58dd7139
4
- data.tar.gz: 004f98c8b1a8d5ec7fcd9af0bf900d52fcdaabc1
3
+ metadata.gz: dee96403e97437406ed71fbca6c0c27536a7fee6
4
+ data.tar.gz: a031b1936f09a034b1c6c2d0585f44108826b02f
5
5
  SHA512:
6
- metadata.gz: 689f93cd82b65a354b3f9326fd1347ebc9757b9d052b958c975cdb310e6405d6e165027b2a35d90d7aaeeda370543f5ae1e4f190ba329a3ff6d58f2423267124
7
- data.tar.gz: bee193a41d1e2da48e8b89698e8bbbc5f0f53e980d92efcead310f818ecc7b9d31e0fbe9cfc0ea65d55060ae811dad0dea80b4215188ae84afbf4c74e99bdcc6
6
+ metadata.gz: f97c0266f332987c2375570c5509bb73c607ef0ba48e3813fc35419cc266728c2ef014b338cf1713dd0d9cc259504b991490ff3f542c8b2a4543f30fbe9741e9
7
+ data.tar.gz: 2d22eefaa822f84185266edcd826406e823f76aa373f1c87829e58cc43a5a29e6f80714b3f631a65e1f17b7e5304d6e49f5d18b89d956f2b9c89c89bde3ee63a
@@ -18,17 +18,18 @@
18
18
  <% if @order.present? and @order.user.present? %>
19
19
  dataLayer.push({'userid': '<%= @order.user.id %>'});
20
20
  <% end %>
21
- <% if @order.present? && @order.bill_address.present? %>
21
+ <% if @order.present? %>
22
22
 
23
23
  dataLayer.push({
24
- 'transactionId': '<%= @order.number %>',
25
- 'transactionTotal': <%= @order.total %>,
26
- 'transactionTax': <%= @order.adjustments.tax.sum(:amount) %>,
27
- 'transactionShipping': <%= @order.adjustments.shipping.sum(:amount) %>,
28
- 'transactionCity': '<%= @order.bill_address.city %>',
29
- 'transactionState': '<%= @order.bill_address.state_text %>',
30
- 'transactionZip': '<%= @order.bill_address.zipcode %>',
31
- 'transactionEmail': '<%= @order.email %>',
24
+ 'transactionId': '<%= @order.number %>',
25
+ 'transactionAffiliation': 'Yourcompanyname',
26
+ 'transactionTotal': <%= @order.total %>,
27
+ 'transactionTax': <%= @order.additional_tax_total %>,
28
+ 'transactionShipping': <%= @order.adjustments.shipping.sum(:amount) %>,
29
+ 'transactionCity': '<%= @order.bill_address.city %>',
30
+ 'transactionState': '<%= @order.bill_address.state_text %>',
31
+ 'transactionZip': '<%= @order.bill_address.zipcode %>',
32
+ 'transactionEmail': '<%= @order.email %>',
32
33
  'transactionProducts': [
33
34
  <%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
34
35
  '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.11'
5
+ s.version = '0.0.12'
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav O. Pogrebnyak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-20 00:00:00.000000000 Z
12
+ date: 2016-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core