Support » Plugin: PPOM for WooCommerce » Cannot finish order

  • Resolved danielforr

    (@danielforr)


    Hi,
    I would like to ask for a fix for little problem.
    When we try to place order with product which contains some meta values, it isn’t possible. It shows error HTTP/2.0 500.
    Error log shows this:

    PHP Warning:  Missing argument 2 for ppom_woocommerce_order_value() in /wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php on line 807
    PHP Warning:  Missing argument 3 for ppom_woocommerce_order_value() in /wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php on line 807
    PHP Notice:  Undefined variable: item in /wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php on line 809
    PHP Fatal error:  Call to a member function get_type() on a non-object in /wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php on line 809

    I figured out that if I comment this in classes/plugin.class.php it works fine.
    add_filter( 'woocommerce_order_item_display_meta_value', 'ppom_woocommerce_order_value', 10, 3);

    But it would be good if you can take a look at it, as I don’t consider my current solution sufficient.

    Thank you,
    Daniel

Viewing 1 replies (of 1 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    Thanks for pointing out this issue and suggestion but it’s not the right way :). But good news is we have fixed this issue and hopefully will be available in next release (11.3)

    BR,
    Najeeb

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot finish order’ is closed to new replies.