• Resolved comlim

    (@comlim)


    Hi,

    when receiving an order and checking the details on the order details page, I have a PHP error

    Fatal error: Uncaught Error: Call to a member function get_meta() on bool
    in /wp-content/plugins/unit-price-for-woocommerce/unit-price-for-woocommerce.php on line 789

    the line is :
    if ( ! wp_doing_ajax() && wc_get_order( $post )->get_meta( ‘_has_unit_items’ ) ) {

    I have no idea what’s going on…

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Condless

    (@condless)

    Hi,
    Please try to change the line to:
    if ( ! wp_doing_ajax() && wc_get_order( $post ) && wc_get_order( $post )->get_meta( '_has_unit_items' ) ) {

    Thread Starter comlim

    (@comlim)

    It works !

    Thank you so much !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error on order sulmlmary’ is closed to new replies.