I'm new to this forum and have searched the web for days now trying to find a solution to my problem:
function 1 builds the top of the page where the total ordered items are displayed.
For example: total 10 items.
For example: some-kind-of-shoe 5 items, some-kind-of-hat 5 items (total 10 items).
But when the user changes some-kind-of-shoe 5 items into some-kind-of-shoe 1 item, i want function 1 to be triggered and update the total 10 items into total 6 items.
I've tried calling function 1 after the re-calculation in function 2 but the problem in PHP is that total 10 items changes into total 6 items but displays this underneath the middle of the page instead of updating the top of the page.
Is there a way i can trigger function 1 and update only the top part of the page?
Hopefully my explanation is a little clear.... :-)