1

The provided addresses template for the Craft Commerce checkout only shows the email to logged-out users. We need logged-in admin staff to be able to put orders through on behalf of a customer, over the phone. So, I'm showing the email input to logged-in users as well.

When the admin person arrives at the addresses template, the email field is pre-populated with the admin person's address. They replace their email with the customer's email. They submit.

The cart email remains the admin person's email address.

Can anyone think of a workaround for this?

  • 1
    Will these customers be Craft users or are they guests? – Luke Pearce Feb 14 '17 at 15:12
  • The customers are guests. – Clive Portman Feb 15 '17 at 9:36
2

I don't think there is an easy workaround here as you're dealing with logged in user functionality, and by definition that's not really designed to be easy to workaround.

Probably the easiest thing is for the admin to use the 'log in as XXX' functionality, and then complete the order for the customer (assuming the customer had a Craft account which is not, per se, a given with Commerce). If they're guest customers, the admin should probably jsut log out, complete the order as a guest, and then log back in, basically.

Order entry for admins (via the backend) is on the Commerce plans, though, so a better solution may well appear.

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.