View Single Post
  #6  
Old 03-04-2013, 09:25 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?

I've tried that, but it doesn't actually put in the order value. So I thought I would have to turn on and off the {literal} in order to get it to know the difference between the Javascript and the Smarty tag.

What I've got on the site now is:

<!-- SpringMetrics Conversion Code for mattressinsider -->
{literal}
<script type="text/javascript">
_springMetq.push(["setdata", {revenue: "{$order.total}"}]);
_springMetq.push(["setdata", { "orderId": "{$order.orderid}" }]);
_springMetq.push(["setdata", { "email": "{$order.email}" }]);
_springMetq.push(["setdata", { "promoCode": "{$order.coupon}" }]);
_springMetq.push(["convert", "sale" ]);
</script>
{literal}
<!-- SpringMetrics Conversion Code for mattressinsider -->

Any other thoughts?

By the way, thanks so much for your help and your quick reply!
__________________
JK
X-Cart version 4.7
We have about lots of add-on modules.
Reply With Quote