我想使用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
替换为不含税的订单价格和带有订单ID的transaction_id
。任何想法如何实现这一目标?
答案 0 :(得分: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>';
答案 1 :(得分: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
第二件事。
存储在订单表#__ virtuemart_orders
中的VM中的订单with order id you can find all the amounts. with tax without tax etc.
(order_number,order_pass,order_total,order_subtotal,order_tax)