Implement code needed for MailPoet integration #3661
Comments
This issue has been marked as Internal: After 10 days with no activity this issue will be automatically be closed. |
This issue has been marked as Internal: After 10 days with no activity this issue will be automatically be closed. |
@nerrad I think this issue is unnecessary. Store API goes through the main core Cart class, so those (where applicable) hooks are already fired. I have confirmed this. Regarding the second point:
Sad times if there is no opt-in? But billing email can be gathered from either the global customer object, or the draft order. These are updated "on the fly" as the user progresses through checkout. I don't know what point they'd want to collect this but I guess they could look at order status changes (draft for example) and capture data at that point, or using regular save_post hooks. There is also the checkout event 'set-email-address' dispatched on the client side when this email is provided. Not sure if that is useful or not. |
Oh good, so based on that, there's no extra work needed for MailPoet to integrate with the new checkout flow, other than the ability to add a potential opt-in checkbox? |
Email is not persisted if you don't enter your shipping address, so if they're looking for it on the server, it's not there. However, they can use |
Please reopen, there is still no MailPoet checkbox in the WooCommerce block checkout. |
From some conversations with the team, they shared the things they need for integrating and it looks like this is all server side.
The following hooks:
And then this was also mentioned:
Once we work on this, we will need to clarify at what point they need the email, but I'm just documenting this for planning. I think most of the cart hooks should already be firing but we'll just need to confirm.
The text was updated successfully, but these errors were encountered: