4

I wanted to find out if anyone knows of a way to keep billing info saved in Magento Onepage Checkout billing step if the page is refreshed. The reason is probably obvious but in the scenario that a customer choose to edit their cart having reached the end it would be painful to force them to re-enter their billing info all over again...

I have enabled persistent shopping cart but it isn't saving the data after page refresh so I would be grateful if anybody knew of another way that they could share with us please.

6

You won't be able to do it natively.

But you could be clever and use web sockets (if you need 2 way comms) to continuously save the form data (just like this website does!) - or just use a vanilla Ajax call onkeyup - then save it in the PHP session, to be echo'ed out later.

Or a more straightfoward pluggable approach would be to use a library like jQuery Save as you Type

In either situation, it would save the form contents and allow them to visit another page and come back. The only thing you might have to do is retain the accordion position - but I'm not sure many customers would mind hitting "next" a couple of times if their data was already saved.

  • I think the OP means having to re enter billing form data on Checkout after exiting to the cart. – philwinkle May 19 '13 at 0:04
  • That was my understanding? Any of the above ideas would track the customer's form entry. Have I mis-understood? – Ben Lessani - Sonassi May 19 '13 at 0:45
  • @sonassi yes I'm trying to avoid the scenario where a customer will have to re-enter their billing info again if they choose to edit their cart. If I could keep the data saved in the form for the duration of the session... – user1704524 May 19 '13 at 13:44
  • Okay, so my answer still stands. Please mark it as accepted if you find it suitable. The BETA needs answers to be accepted to graduate. – Ben Lessani - Sonassi May 19 '13 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.