2

我想使用 VirtueMart 向我的基于 Joomla 的网站添加会员跟踪器代码。他们告诉我在感谢页面上添加代码,但我无法弄清楚。VirtueMart 版本为 2.0.12,代码为

<script src="http://network.clickbanner.gr/i_sale_third/10566/SALE_AMOUNT/TRANSACTION_ID
/OPTIONAL_INFORMATION&sale_status=P"></script>
<noscript><img src="http://network.clickbanner.gr/i_track_sale/10566/SALE_AMOUNT/TRANSACTION_ID
/OPTIONAL_INFORMATION&sale_status=P"></noscript>

Ι 必须替换SALE_AMOUNT为订单的不含税价格和transaction_id订单id。任何想法如何实现这一目标?

4

2 回答 2

3

解决方案:

感谢页面的输出可以在 /plugins/vmpayment/standard/standard.php(用于标准付款方式)或 /plugins/vmpayment/paypal/paypal.php 中进行编辑。在函数中找到$html变量plgVmConfirmedOrder($cart, $order)并在行后添加所需的代码$html .= '</table>' . "\n";(第 135 行)。在我的情况下,代码是:

$html .= '<script src="http://network.clickbanner.gr/i_sale_third/10566/'.$order['details']['BT']->order_subtotal.'/'.$order['details']['BT']->order_number.'
/OPTIONAL_INFORMATION&sale_status=P"></script><noscript><img src="http://network.clickbanner.gr/i_track_sale/10566/'.$order['details']['BT']->order_subtotal.'/'.$order['details']['BT']->order_number.'/OPTIONAL_INFORMATION&sale_status=P"></noscript>';
于 2012-11-07T17:56:43.150 回答
1

你可以做到这一点,

First the order confirmation page of VM2.x is order_done.php 
the file you can find in the path : components/com_virtuemart/view/cart/tmpl/order_done.php

第二件事。

VM中的订单存储在订单表中#__virtuemart_orders

with order id you can find all the amounts. with tax without tax etc.
(order_number,order_pass,order_total,order_subtotal,order_tax)
于 2012-11-07T04:31:43.313 回答