2) Use a php hook to capture on 'update_user_pre or 'update_profile''
3) Use a post checkout controller to read it from the 'cart' SESSION variable.
All depends on what you're planning to do with it once you capture it and whether it's an anonymous or registered user.
If you want to grab it for all user types, then I'd suggest a post checkout controller and capturing from the cart SESSION variable. Only trouble with this method is that you'll have to invent your own trigger or condition to know when it's been changed (if that's important for you).
All depends on what you're planning to do with it once you capture it and whether it's an anonymous or registered user.
If you want to grab it for all user types, then I'd suggest a post checkout controller and capturing from the cart SESSION variable. Only trouble with this method is that you'll have to invent your own trigger or condition to know when it's been changed (if that's important for you).
exactly, if the complete the purchase is done. NO need to catch them
So your goal is to capture the email address used in an order and then ignore it if the order is submitted?
If so, you have a couple of choices.
1) If you want to capture upon entry and do something with it even if they don't do another click, then you'll have to use jQuery to capture and send an ajax request with the data.
2) If you want to capture after first "continue" click, then I'd use a checkout.post.php controller and capture it from the SESSION[cart] data and then discard it if the $mode of a POSTed request is 'place_order'.
If you use #1, you'll still have to do #2 so you can discard it when you determine it's not needed.