Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter tom

    (@klickchoice)

    My friend also posting the question in stackoverflow to support me . Please see https://stackoverflow.com/questions/35114546/automatically-calculate-order-total-in-woocommerce

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    No, the button needs pressing as it stands. The person creating the order would notice the order total being $0. When we redo the orders page we’ll look into this.

    Thread Starter tom

    (@klickchoice)

    Is there any code i need to write for auto calculate ?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    You would need javascript to trigger ‘click’ of the calculate button on ‘save’ inside the order item box. We don’t support this at present.

    Thread Starter tom

    (@klickchoice)

    Thank you . I will do this . Could you please tell which hook i need to use , ie hook run when order is saved .

    Why currently the setup is depend on calculate total button . Is there any befit because of this . ?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    I said we’ll look at it when the order page is redesigned.

    No specific hook, enqueue a JS file in admin and trigger the code on the click event of the save button.

    Thread Starter tom

    (@klickchoice)

    Ok. Thank you .

    Is it possible to know the design decision behind NOT automatically calculating the totals whenever a line item is modified/added/removed? I can’t fathom why this isn’t automatic. Is it due to the chosen implementation being AJAX? Couldn’t the AJAX response resulting (from manipulating a line item) trigger the same JS method the Calculate Totals button triggers?

    Reece

    (@firstclasscode)

    Can we disable the alert that forces you to confirm the total calculation? If we click the button we clearly wanted to calculate the totals.

    Thank You!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    As stated above, we’ll be redoing this in a future release.

    > If we click the button we clearly wanted to calculate the totals.

    Accidental clicks are common.

    Reece

    (@firstclasscode)

    While you do have a point there, is there anyway we can temporarily disable it?

    I tried searching through GitHub and I was unable to find the line where it asks you to confirm. Found the text… found the function.. Not sure how to disable it for now.

    Thank you, and I look forward to the updated version of the admin order screen ??

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    You would need javascript code of your own to unbind our function and hook in your own to trigger the save.

    Reece

    (@firstclasscode)

    Mike,

    Thanks for the reply. I just removed the if window.confirm function in the minified admin JS.

    Noted it in a changes to Woocore text file I have going.

    Thanks for the reply and have a super day!

    Hi Reece

    I have similar issue, can you please share your solution with me?

    @pacikav: This is not your topic. If you require assistance then, as per the Forum Welcome, please post your own topic.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Automatically calculate order total .’ is closed to new replies.