Thread Starter
tom
(@klickchoice)
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 ?
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 . ?
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.
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?
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!
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.
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 π
You would need javascript code of your own to unbind our function and hook in your own to trigger the save.
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.