0

THE SITUATION

In this shop, the employee attendant takes order over the phone. We use a plugin named 'Shop as Client' to achieve that.

THE PROBLEM

Sometimes, after it´s all set to complete the order, a customer wants to add/change something in the order. The attendant makes the changes and has to type the customer info once again (and again and again, in case the customer wants more changes).

THE SOLUTION

I need to retain the typed in data such as email, name, address, etc so the attendant can make changes and come back to checkout without having to type all the info again.

WHAT I´VE TRIED

I tried to create a 'save session' button, but even though I can use WC()->session->set('typed_name', $_POST['billing_first_name'] );, I cannot read the $_POST['billing_first_name'] because it´s in another form (I guess).

Do you know how I could read this field? Do you have a better idea for me to solve the problem? Thanks in advance for your time.

Your Answer

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

Browse other questions tagged or ask your own question.