spree_utag 0.0.17 → 0.0.18

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: fef3de7e7c7d40d988c0f0d5cbce29603f9354f9
4
- data.tar.gz: d6ccc01846eb2450c84b51e4d7f498738a2d497b
3
+ metadata.gz: aa36231b43f15bb72f6166c9d88ef6816a9fbeb3
4
+ data.tar.gz: c64569d4849d3b903deefef1cd3c2dcb1d2202cd
5
5
  SHA512:
6
- metadata.gz: a33c80479537002293b67831f2345d0ef31bb02eedadfccd13387f21b29a80c9b3ffbaf25d86944b0af078fec46fb389705ed4d5fce6111d123002bac765b0a1
7
- data.tar.gz: a6f8e18086da3a9451ef2c8e5e34b4fa52eb791cc11ab117d57224ba7f2987273a40507e0074ff5db6e54ec5d061830360ff86767f0ce0531a31f47e6aeb5f5a
6
+ metadata.gz: a7cb4d15ec61b5cb1113da33a75baeec47bf4d3ea85d11babee9826d57ebce11d3fb95bb0976a32faafa1410b18bed69bc20373d32808aa17a85998d530fb58a
7
+ data.tar.gz: d3a482546d92306505075433f0abd82369810ae9c99b2186147ca46fbe4242723d569d8068661cdb72d47631528c65aa8b0c21ed98a35608cbfa2c073fb7fb95
@@ -0,0 +1,6 @@
1
+ module SpreeUtag
2
+ Deface::Override.new(virtual_path: 'spree/products/show',
3
+ name: 'product_page_utag',
4
+ insert_before: '[data-hook="product_show"]',
5
+ partial: 'spree/utags/product_page_utag')
6
+ end
@@ -0,0 +1,18 @@
1
+ <% content_for :spree_utag do %>
2
+ <script type='text/javascript'>
3
+ <% product = Spree::Product.friendly.find params[:id] %>
4
+ <% category = Spree::Taxon.friendly.find params[:taxon_id] %>
5
+ var utag_data = {
6
+ //site_region: 'US',
7
+ site_currency: '<%= Spree::Config.currency %>',
8
+ page_name: 'product: <%= product.name %>',
9
+ page_type: 'product',
10
+ product_id: ['<%= product.id %>'],
11
+ product_sku: ['<%= product.sku %>'],
12
+ product_name: ['<%= product.name %>'],
13
+ //product_brand: ['product brand'],
14
+ product_category: ['product <%= category.name %>'],
15
+ product_unit_price: ['<%= product.price.to_s %>']
16
+ };
17
+ </script>
18
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module SpreeUtag
2
- VERSION = '0.0.17'
2
+ VERSION = '0.0.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_utag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew
@@ -24,9 +24,11 @@ files:
24
24
  - app/overrides/utags/application_layout.rb
25
25
  - app/overrides/utags/category_page.rb
26
26
  - app/overrides/utags/home_page.rb
27
+ - app/overrides/utags/product_page.rb
27
28
  - app/views/spree/utags/_category_page_utag.html.erb
28
29
  - app/views/spree/utags/_home_page_utag.html.erb
29
30
  - app/views/spree/utags/_layout_utag.html.erb
31
+ - app/views/spree/utags/_product_page_utag.html.erb
30
32
  - lib/spree_utag.rb
31
33
  - lib/spree_utag/engine.rb
32
34
  - lib/spree_utag/version.rb