View Single Post
  #27  
Old 03-05-2013, 08:57 AM
 
andrewmattress andrewmattress is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 39
 

Default Re: XCart removing code from script. How to get code on page?

Solved!

YAY!!!

Thank-you SO much for your help.

Was a much longer process than anticipated, but good to go now!

Here is the XCart code for making Spring Metrics work with the version of XCart we are using.

<!-- SpringMetrics Conversion Code for mattressinsider -->
<script type="text/javascript">
_springMetq.push(["setdata", {literal}{revenue: "{/literal}{$orders.0.order.total}{literal}"}]);
_springMetq.push(["setdata", { "orderId": "{/literal}{$orderids}{literal}" }]);
_springMetq.push(["setdata", { "email": "{/literal}{$orders.0.order.email}{literal}" }]);
_springMetq.push(["setdata", { "promoCode": "{/literal}{$orders.0.order.coupon}{literal}" }{/literal}]);
_springMetq.push(["convert", "sale" ]);
</script>
<!-- SpringMetrics Conversion Code for mattressinsider -->
__________________
JK
X-Cart version 4.7
We have about lots of add-on modules.
Reply With Quote