Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter timdendikken

    (@timdendikken)

    Hi Femi,

    This 100% solves the issues I had, the beta-fix is a succes. I will implement this for now. Thanks a lot! So for other users, to be clear the function as stated below will work again with negative values allowing for discount fees.

    $WC_Cart->add_fee( $name, $amount, $taxable, $tax_class );

    So for other users, if you’re facing this error (go check your logs)!

    Error executing API call (422: Unprocessable Entity): Line item 3 is invalid. The 'unitPrice' field cannot be negative, unless the 'type' is one of the following: 'discount', 'store_credit', and 'gift_card'. Documentation: https://docs.mollie.com/overview/handling-errors.

    Use the beta-package for now.

    • This reply was modified 1 year, 2 months ago by timdendikken.

    I’m dealing with the same issue right now. Time zone was correct so that wasn’t the solution for me. I put the snippet in for now hoping for the best.
    Snippet: add_filter('wt_sequential_is_old_order','__return_false');

Viewing 2 replies - 1 through 2 (of 2 total)