Viewing 1 replies (of 1 total)
  • Thread Starter gigio2k

    (@gigio2k)

    Ok the problem is that in prder-pay page we have order and not cart so the price is always 0 so a quick’n’dirty fix is to get the price from order !

    file: scalapay-easy-installment-gateway.php:667

        //checkout page
         if (isset($woocommerce->cart)) {
                $current_price = floatval(preg_replace('#[^\d.]#', '', $woocommerce->cart->total));
            }
         //order-pay page
            if (get_query_var('order-pay')) {
                $order = new WC_Order(get_query_var('order-pay'));
                $current_price = floatval(preg_replace('#[^\d.]#', '', $order->total));
            }
    
Viewing 1 replies (of 1 total)
  • The topic ‘not showing on order-pay page’ is closed to new replies.