Sha256: 39862bfd57df599d7f050e1415a9711c3186f29c367b44b90dc41b39adcbb1d6

Contents?: true

Size: 716 Bytes

Versions: 2

Compression:

Stored size: 716 Bytes

Contents

- if Workarea::Yotpo.app_key.present?
  :javascript
    (function e(){var e=document.createElement("script");e.type="text/javascript",e.async=true,e.src="//staticw2.yotpo.com/#{Workarea::Yotpo.app_key}/widget.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})();
  :javascript
    yotpoTrackConversionData = {orderId: "#{@order.id}", orderAmount: "#{@order.total_price}", orderCurrency: "#{@order.total_price.currency.iso_code}"}
  %noscript
    %img{:height => "1", :src => "//api.yotpo.com/conversion_tracking.gif?app_key=#{Workarea::Yotpo.app_key}&order_id=#{@order.id}&order_amount=#{@order.total_price}&order_currency=#{@order.total_price.currency.iso_code}", :width => "1"}/

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-yotpo-1.0.1 app/views/workarea/storefront/checkouts/_yotpo_order_tracking.html.haml
workarea-yotpo-1.0.0 app/views/workarea/storefront/checkouts/_yotpo_order_tracking.html.haml