Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • the latest version does work with return redirection and payment ect. But i still get some errors with the newest module:

    Notice: Undefined variable: order_id in /xx/xx/woocommerce-quickpay/gateway-quickpay.php on line 841
    
    Notice: WC_Subscriptions_Order::get_price_per_period har været forældet siden version 1.2! Brug WC_Subscriptions_Order::get_recurring_total( $order, $product_id ) i stedet. in /xx/xx/functions.php on line 2908
    You will be automatically redirected to the payment window in 5 seconds. Click on the button below if you are not redirected.

    HOTFIX, until he will fix it.

    FILE: gateway-quickpay.php
    LINE 341-315 replace with this:

    $continueurl	= add_query_arg('key', $this->order->order_key, add_query_arg('order', $order_id, get_permalink(get_option('woocommerce_thanks_page_id'))));
    			$cancelurl		= add_query_arg('key', $this->order->order_key, add_query_arg($query_args_cancellation, get_permalink(get_option('woocommerce_cart_page_id'))));

    and

    LINE 320, replace with this code:

    $amount = $this->format_price(WC_Subscriptions_Order::get_recurring_total( $this->order ));
Viewing 2 replies - 1 through 2 (of 2 total)