| Line 164... |
Line 164... |
| 164 |
#include("templates/footer.vm")
|
164 |
#include("templates/footer.vm")
|
| 165 |
|
165 |
|
| 166 |
#include ( "templates/commonjsfiles.vm" )
|
166 |
#include ( "templates/commonjsfiles.vm" )
|
| 167 |
|
167 |
|
| 168 |
<script type="text/javascript" charset="utf-8">
|
168 |
<script type="text/javascript" charset="utf-8">
|
| 169 |
#set($orders = $action.getSuccessfulOrders())
|
169 |
#set($sorders = $action.getSuccessfulOrders())
|
| 170 |
#if($orders && $orders.size() != 0)
|
170 |
#if($sorders && $sorders.size() != 0)
|
| 171 |
#foreach($order in $orders)
|
171 |
#foreach($order in $sorders)
|
| 172 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
172 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
| 173 |
_gaq.push(['_addTrans',
|
173 |
_gaq.push(['_addTrans',
|
| 174 |
'$order.getId()', // order ID - required
|
174 |
'$order.getId()', // order ID - required
|
| 175 |
'${in.shop2020.title}', // affiliation or store name
|
175 |
'${in.shop2020.title}', // affiliation or store name
|
| 176 |
'$order.getTotal_amount()', // total - required
|
176 |
'$order.getTotal_amount()', // total - required
|
| Line 228... |
Line 228... |
| 228 |
<!-- Place your logic to get the revenue from the page & pass as an argument to the conversion script -->
|
228 |
<!-- Place your logic to get the revenue from the page & pass as an argument to the conversion script -->
|
| 229 |
<script language="javascript" type="text/javascript" src='http://bsrv.adohana.com/ohana/conversion.js?id=112&r=0'></script>
|
229 |
<script language="javascript" type="text/javascript" src='http://bsrv.adohana.com/ohana/conversion.js?id=112&r=0'></script>
|
| 230 |
<!-- Fill info array as "Product ID,,Product Name,,Quantity,,Product Price" -->
|
230 |
<!-- Fill info array as "Product ID,,Product Name,,Quantity,,Product Price" -->
|
| 231 |
<script type="text/javascript" language='javascript'>
|
231 |
<script type="text/javascript" language='javascript'>
|
| 232 |
var info = [];
|
232 |
var info = [];
|
| 233 |
#set($orders = $action.getOrders())
|
233 |
#set($sorders = $action.getSuccessfulOrders())
|
| 234 |
#if($orders && $orders.size() != 0)
|
234 |
#if($sorders && $sorders.size() != 0)
|
| 235 |
#foreach($order in $orders)
|
235 |
#foreach($order in $sorders)
|
| 236 |
#set($lineitems = $order.getLineitems())
|
236 |
#set($lineitems = $order.getLineitems())
|
| 237 |
#foreach($lineitem in $lineitems)
|
237 |
#foreach($lineitem in $lineitems)
|
| 238 |
var prod_name = '';
|
238 |
var prod_name = '';
|
| 239 |
#if($lineitem.getBrand())
|
239 |
#if($lineitem.getBrand())
|
| 240 |
prod_name += '$lineitem.getBrand()';
|
240 |
prod_name += '$lineitem.getBrand()';
|