确认之前Joomla virtuemart支付插件事件

时间:2015-03-30 04:37:48

标签: php joomla virtuemart

我需要virtmart PSPlugin事件,用户可以验证付款数据。 如果我使用plgVmConfirmedOrder,我的表单会显示在确认页面中。

我需要一个页面"感谢订单"页面,但在用户按下"确认"购物车中的按钮。

任何人都知道哪种方法对我喜欢的活动有用吗?

class plgVMPaymentOTPay extends vmPSPlugin
{

    function __construct (& $subject, $config)
    {
        parent::__construct ($subject, $config);

        $this->_loggable = TRUE;
        $this->tableFields = array_keys ($this->getTableSQLFields ());
        $this->_tablepkey = 'id';
        $this->_tableId = 'id';
        $varsToPush = $this->getVarsToPush ();
        $this->setConfigParameterable ($this->_configTableFieldName, $varsToPush);
    }


    public function plgVmDisplayListFEPayment(VirtueMartCart $cart, $selected = 0, &$htmlIn)
    {
        echo 'Fired: plgVmDisplayListFEPayment <br>';

        return $this->displayListFE($cart, $selected, $htmlIn);
    }

    public function plgVmOnShowOrderFEPayment ($virtuemart_order_id, $virtuemart_paymentmethod_id, &$payment_name)
    {
        echo 'Fired: plgVmOnShowOrderFEPayment <br>';

        $this->onShowOrderFE($virtuemart_order_id, $virtuemart_paymentmethod_id, $payment_name);
    }

    function checkConditions ($cart, $method, $cart_prices)
    {
        echo 'Fired: checkConditions <br>';

        return true;
    }

    public function plgVmonSelectedCalculatePricePayment(VirtueMartCart $cart, array &$cart_prices, &$cart_prices_name)
    {
        echo 'Fired: plgVmonSelectedCalculatePricePayment <br>';

        return $this->onSelectedCalculatePrice($cart, $cart_prices, $cart_prices_name);
    }

    function plgVmConfirmedOrder($cart, $order)
    {

        echo 'Fired: plgVmConfirmedOrder <br>';

    }


}

0 个答案:

没有答案