有谁知道如何在事件中添加一个 if 语句来表示 true 和 error?
* @return null if the payment was not selected, true if the data is valid, error message if the data is not vlaid
*
*/
public function plgVmOnSelectCheckPayment (VirtueMartCart $cart, &$msg) {
return $this->OnSelectCheck ($cart);
}
有了这个它不起作用
if ($cart != null ) {
echo "TEST";
}