• Resolved ifnoob

    (@ifnoob)


    Error message: Uncaught Error: Call to a member function get_cart() on null

    class-jp4wc-virtual.php 内の foreach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
    カートが空/nullのチェックが抜けている様です。

    if ( ! is_null(WC()->cart) ) { <- null チェック追加
    foreach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
    // Check if there are non-virtual products
    if ( ! $cart_item[‘data’]->is_virtual() ) $only_virtual = false;
    }
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • dipstar

    (@dipstar)

    Same here. 同じ不具合により他決済プラグインであるPayment Plugins for Stripe WooCommerce との競合が生じて困っています。

    このプラグインは半年前からぱったりアップデートが途絶えているようで心配です。開発終了でないことを祈ります。

    Plugin Author shohei.tanaka

    (@shoheitanaka)

    すいません。チェックが抜けておりました。
    早急に修正してアップデートします。

    dipstar

    (@dipstar)

    解決しました!大変迅速なご対応に感謝申し上げます。

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Final Error’ is closed to new replies.