Sha256: ae1e7e9687b154dad98137875468193908d702d0f82934ac3b68cf6e2672aed4
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
<% content_for :spree_utag do %> <script type='text/javascript'> <% product = Spree::Product.friendly.find params[:id] %> <% category = Spree::Taxon.friendly.find params[:taxon_id] %> var utag_data = { //site_region: 'US', site_currency: '<%= Spree::Config.currency %>', page_name: 'product: <%= product.name %>', page_type: 'product', product_id: ['<%= product.id %>'], product_sku: ['<%= product.sku %>'], product_name: ['<%= product.name %>'], //product_brand: ['product brand'], product_category: ['product <%= category.name %>'], product_unit_price: ['<%= product.price.to_s %>'] }; </script> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_utag-0.0.18 | app/views/spree/utags/_product_page_utag.html.erb |