2016-08-11 106 views
0

我是Prestashop的新手。我正在嘗試爲聯盟計劃安裝跟蹤代碼,該代碼允許我從訂單確認頁面(這是代碼的嵌入位置)檢索信息。這是會員跟蹤代碼,你知道什麼參數我應該替換''中的參數。這在prestashop中有哪些變量?非常感謝你的那種回答代碼跟蹤和PrestaShop

<script type="text/javascript"> 
 
//<![CDATA[ 
 
/*** Do not change ***/ 
 
var AWIN = {}; 
 
AWIN.Tracking = {}; 
 
AWIN.Tracking.Sale = {}; 
 

 
/*** Set your transaction parameters ***/ 
 
AWIN.Tracking.Sale.amount = 'SALE_AMOUNT'; 
 
AWIN.Tracking.Sale.currency = 'GBP'; 
 
AWIN.Tracking.Sale.orderRef = 'ORDER_REF'; 
 
AWIN.Tracking.Sale.parts = 'COMMISSION_GROUP:SALE_AMOUNT'; 
 
AWIN.Tracking.Sale.voucher = 'VOUCHER_CODE'; 
 
AWIN.Tracking.Sale.test = '1'; 
 
//]]> 
 
</script>

回答

2

取代這些,他們可以改變基於主題覆蓋

{literal} 
<script type="text/javascript"> 
//<![CDATA[ 
/*** Do not change ***/ 
var AWIN = {}; 
AWIN.Tracking = {}; 
AWIN.Tracking.Sale = {}; 

/*** Set your transaction parameters ***/ 
AWIN.Tracking.Sale.amount = '{/literal}{$order.revenue}{literal}'; 
AWIN.Tracking.Sale.currency = '{/literal}{$currency.iso_code}{literal}'; 
AWIN.Tracking.Sale.orderRef = '{/literal}{$reference_order}{literal}'; 
AWIN.Tracking.Sale.parts = 'COMMISSION_GROUP:SALE_AMOUNT'; 
AWIN.Tracking.Sale.voucher = 'VOUCHER_CODE'; 
AWIN.Tracking.Sale.test = '1'; 
//]]> 
</script> 
{/literal} 

缺少這兩個值: 「COMMISSION_GROUP:SALE_AMOUNT」 和「VOUCHER_CODE」,但應取決於跟蹤系統