• Resolved Warren

    (@warrencmoore)


    Something that’s been mentioned before, but stock is definitely being reduced twice.

    Please take a look at lines 115 – 118 of /includes/class-wc-gateway-ppec-checkout-handler.php where you can clearly see the issue.

    The WC_Order::payment_complete function is called, which automatically runs WC_Order::reduce_order_stock itself. But then 2 lines later you call WC_Order::reduce_order_stock resulting in a second deduction. There’s no need for that since it’s all dealt with by the WC_Abstract_Order class.

    https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hey Warren,

    Thanks for looking into this. This will be fixed in an upcoming release.

Viewing 1 replies (of 1 total)
  • The topic ‘Stock reduced twice’ is closed to new replies.