如何在贝宝支付插件中阻止在virtualmart 2.0中创建发票


How to block the invoice creating in virtuemart 2.0 in paypal payment plugin

我需要阻止Virtuelmart 2.0 Paypal支付方式插件中的发票创建代码。怎么可能?请帮我做这个。

在后台的支付插件部分。

转到Paypal支付选项,您将有三个选项。

PayPal Waiting ->  Pending
PayPal Confirmed -> Confirmed
PayPal Cancelled -> Cancelled

这里是您在创建订单时间时可以考虑的等待状态,

当订单创建时,它会触发具有Pending状态的Paypal支付插件,您可以在上跟踪该事件

plugins'vmpayment'paypal'paypal.php

在这个plgVmConfirmedOrder()函数中,用Pending获得控制,您可以检查状态和避免DB查询。

同时从confirmedOrder() 内的cart.php helper文件触发此功能

希望它能有所帮助。