Support » Plugin: Order Splitter for WooCommerce » parent order total not update

  • Resolved molly12

    (@molly12)


    Hello
    I am testing the plugin in the free version in a development site to test the functionality. I have a problem with the total order in the parent order.
    I set the split with the removal of the items from the parent order but the total of the parent order is the total of all the items in the order before the split, it does not essentially update the total order after removing the items.
    How to fix?

    thanks

    Monica

Viewing 8 replies - 1 through 8 (of 8 total)
  • @molly12 I have checked the free version and it is removing items from parent order and updating order total accordingly.

    Which method are you using?

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @molly12 there are two possibilities

    1) The method you are using to split is not successfully running the function, calculate_totals().

    2) calculate_totals() function is missing in that method or the steps you are following to split.

    Please share with us the steps you are following to produce this error. @richiewatson is from our support team and he will try to reproduce the error in our system. Your contribution will be acknowledged in our upcoming changelog.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @molly12 please try to use the blue button to recalculate totals on edit order page, if that works so help us to reproduce the error by describing your steps.

    Thread Starter molly12

    (@molly12)

    Thanks for the reply

    “please try to use the blue button to recalculate totals on edit order page, if that works so help us to reproduce the error by describing your steps.”
    I tried and it works

    I made a video where you see the settings and I reply the error by placing an order

    https://drive.google.com/file/d/16LRsnd-D87RsRzBxfh_emjzIdgyEc_6Y/view

    thank

    Monica

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Please try the updated version 3.8.2, I have added 2 more lines to calculate order total again in default case. I couldn’t reproduce this issue on my end but still added an extra check so it might will work for you.

    Thread Starter molly12

    (@molly12)

    Hi,
    thank for the replay
    i have updated version 3.8.2 but i encountered a fatal error

    “Fatal error: Uncaught Error: Call to a member function calculate_totals() on null in /var/www/clients/client1/web1/web/wp-content/plugins/woo-order-splitter/inc/functions.php:2549 ”

    i have change for a test on line 2549
    $order->calculate_totals()
    with
    $order_data->calculate_totals()
    and that work for me

    please you can update the plugin with the fix

    thank

    Monica

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Please try again, it has been fixed.

    Thread Starter molly12

    (@molly12)

    Hi,
    it works!!!!

    thank you so much for the support

    Monica

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.