app/views/orders/_google_order.html.erb in spree-0.8.5 vs app/views/orders/_google_order.html.erb in spree-0.9.0
- old
+ new
@@ -8,11 +8,11 @@
pageTracker._trackPageview();
pageTracker._addTrans(
"<%= order.number %>", //Order Number
"", //Affiliation
"<%= order.total %>", //Order total
- "<%= order.tax_amount %>", //Tax Amount
- "<%= order.ship_amount %>", //Ship Amount
+ "<%= order.tax_charges.sum(:amount).to_s %>", //Tax Amount
+ "<%= order.shipping_charges.sum(:amount).to_s %>", //Ship Amount
"", //City
"", //State
"" //Country
);
<% order.line_items.each do |line_item| -%>