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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa36231b43f15bb72f6166c9d88ef6816a9fbeb3
|
4
|
+
data.tar.gz: c64569d4849d3b903deefef1cd3c2dcb1d2202cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7cb4d15ec61b5cb1113da33a75baeec47bf4d3ea85d11babee9826d57ebce11d3fb95bb0976a32faafa1410b18bed69bc20373d32808aa17a85998d530fb58a
|
7
|
+
data.tar.gz: d3a482546d92306505075433f0abd82369810ae9c99b2186147ca46fbe4242723d569d8068661cdb72d47631528c65aa8b0c21ed98a35608cbfa2c073fb7fb95
|
@@ -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 %>
|
data/lib/spree_utag/version.rb
CHANGED
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.
|
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
|