What can I do to keep the total amount of the purchase when the user moves from one page to another?