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 +4 -4
- data/app/views/spree/gtm/_google_tag_manager_head.html.erb +1 -1
- data/spree_gtm.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6010901756c84ae6efbc143e4fe3d959318097b6
|
4
|
+
data.tar.gz: 6b717477df0af90035ad6b8149218ba33a2fc79e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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