I have a script that updates a session variable within the onepage checkout, that ultimately affects the total of the cart.
The value is set and saved into the session, but as the page hasn't been refreshed, the value isn't read into the rest of the underlying code on submit.
If I save the part of checkout that sets the session variable, and then refresh the page, the variable is taken into account and the checkout works as intended.
Is there a way to either:
To the save function worked a treat.