[英]Magento & Google Checkout & Tracking
I am attempting to integrate an afilliate network with my Magento shopping cart. 我正在尝试将Magento购物车集成一个补充性网络。 I am using Google Checkout so i need to modify app/code/core/mage/googlecheckout/model/api/xml/checkout.xml in order to pass some tracking info to Google Checkout. 我正在使用Google Checkout,因此我需要修改app / code / core / mage / googlecheckout / model / api / xml / checkout.xml才能将一些跟踪信息传递给Google Checkout。
So far I have this code: 到目前为止,我有以下代码:
<merchant-checkout-flow-support>
<parameterized-urls>
<parameterized-url url="https://track.webgains.com/transaction.html?wgver=1.1&wgprogramid=4449&wgrs=1&wgeventid=7041&wgvouchercode=XXXXX"/>
<parameters>
<url-parameter name="wgorderreference" type="order-id"/>
<url-parameter name="wgvalue" type="order-total"/>
</parameters>
</parameterized-urls>
....
</merchant-checkout-flow-support>
Does anyone know how I can replace the 'XXXXX' with the name of any discount code which has been used? 有谁知道我如何用已使用的折扣代码的名称替换“ XXXXX”?
Thanks! 谢谢!
I'm guessing here, but have you tried adding a new attribute to the Order object called (say) order-voucher-code
(this forum thread gives you that process), and then inserting: 我在这里猜测,但是您是否尝试过将新属性添加到名为(例如) order-voucher-code
的Order对象(此论坛线程为您提供了该过程),然后插入:
<url-parameter name="wgvouchercode" type="order-voucher-code"/>
That might work? 那可能行得通吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.