Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Are you using the bulk item discount plugin, by chance?

    Thread Starter magnoct

    (@magnoct)

    I have this plugin installed:

    WooCommerce Dynamic Pricing & Discounts

    Plugin Contributor angelleye

    (@angelleye)

    That’s probably what’s doing it. There seems to be rounding issues that are happening with plugins like that, where basically the numbers aren’t getting rounded at all when they should, causing a number like 29.9894943944434 to be sent as the amount to PayPal. PayPal cannot accepts amounts like this.

    This is a known issue that we’re working to get resolved ASAP. It’s planned to be included in the 1.1.7 release, which I was hoping to get done within a week or two.

    That said, WooThemes just released version 2.3 of WooCommerce, which comes with lots of major changes to the development structure that we’re going to have to adjust for. As such, our other plans will probably be delayed a little bit while we play some catch-up.

    We do know about this, though, and we’ll get it fixed as soon as we can, so keep your eye out for updates.

    I’m going to mark this as resolved since it’s on our GitHub repo issues list, but just let me know if you have any other questions.

    Thread Starter magnoct

    (@magnoct)

    Thanks,

    Should this error only happen if someone is using a discount (even if auto applied)?

    What about normal woocommerce coupons, are they generating the error too?

    The reason I ask is that I dont think I have any active auto discounts using the discount plugin.

    Plugin Contributor angelleye

    (@angelleye)

    To my knowledge, regular coupons should be working just fine, but if you’re finding otherwise I would need to see a copy of the API request saved in your /wc-logs directory (assuming you have logging enabled.)

    i believe this is the problem I’m facing.

    I have a surcharge code in my functions.php, which is a percentage of total. I get the 10426 error using Express Checkout.

    add_action( 'woocommerce_cart_calculate_fees','woocommerce_custom_surcharge' );
    function woocommerce_custom_surcharge() {
      global $woocommerce;
      if ( is_admin() && ! defined( 'DOING_AJAX' ) )
        return;
      $percentage = 0.024;
      $surcharge = ( $woocommerce->cart->cart_contents_total + $woocommerce->cart->shipping_total ) * $percentage;
      $woocommerce->cart->add_fee( 'Transaction fee', $surcharge, true, 'standard' );
    
    }

    Any news on when version 1.1.7 will be released and if this will deal with rounding errors?

    Plugin Contributor angelleye

    (@angelleye)

    We’re currently working on 1.1.6.3, and yes, that will include updates to help resolve rounding issue with WooCommerce. Hoping to get it released within the next couple of weeks. I’ve said that quite a few times on here already, I know, but now I have somebody focused on this plugin full time, so we’ll get things done a lot more quickly and more regularly from here on.

    thanks angelleye, good luck with the release.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘10426 – Item total is invalid’ is closed to new replies.