我需要你的帮助来解决我的 magento 问题。我有一个用于跟踪订单的成功页面的跟踪代码。这是我的跟踪代码:
<script language="javascript" type="text/javascript">
(function(){
var properties = {};
properties.billing_orderid = 'PLEASE ADD A UNIQUE ORDER ID'; // this id must be unique otherwise we will count the conversion only once
properties.billing_address = 'NULL'; // if needed
properties.billing_customerid = 'NULL'; // if needed
properties.billing_sum = 'ADD BASKET VALUE HERE, ONLY . SIGN ALLOWED';
// each line represents a product, please add neccassary line for each product and put the right values into it
properties.ec_Event=[
// Syntax: Action, ProductID, Name, Price, Category, Number of Items, NULL, NULL, NULL
// please avoid any ' sign in each value especially in the product name or make the right javascript quoting by using \' instead of single '
['buy' /* stay fix */ 'YOUR PRODUCT ID', 'PRODUCT NAME', 'PRICE', 'CATEGORY', NUMER OF ITEMS, 'NULL' /* stay fix */, 'NULL' /* stay fix */, 'NULL' /* stay fix */],
['buy', 'ABC123', 'Nike shoe ', '50.00', 'shoes/nike', 2,'NULL', 'NULL', 'NULL']];
A3320.trackEvent(properties);
})();
</script>
我知道如何获得总价:
$total = sprintf("%1\$.2f",$grandTotal);
但我不知道如何获取产品列表。你们有没有人给我小费?
非常感谢!
来自德国的问候,Raisis