Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Abandoned basket for unregistered customers

Abandoned basket for unregistered customers

Majklos
Visitor
2 0 0

Hello, 

I'm developing an abandoned basket functionality for my integration of Shopify with Ecomail.

 

I'm using checkouts/create webhook event for this functionality and everything is working great with a registered and logged in customer (I receive the products in basket, email, name etc.) but when an unregistered customer leaves checkout process at payment screen, I receive checkouts/create webhook event without an email, even though the customer filled his email in the previous step of the process and checked the checkbox, that he wants to receive newsletters.

 

Any idea how to receive his email address in checkouts/create webhook event? 

 

Thanks

Replies 4 (4)

csam
Shopify Staff (Retired)
267 40 51

Hi @Majklos 

 

Thanks for your question about this - I'm seeing the same results in my testing. I'm going to need to do a little more digging to determine whether this is intentional, however it seems as though the email address should be included as it is present on the checkout itself. I'll let you know what I find!

 

Regards,

To learn more visit the Shopify Help Center or the Community Blog.

Majklos
Visitor
2 0 0

Hi Csam,

 

any news?

 

Thanks

csam
Shopify Staff (Retired)
267 40 51

Hi @Majklos 

 

I've left this with our product team for further review. A temporary workaround might be to have your app poll the shop for abandoned checkouts, then match them up by id or token to get the email address. You can read more about the abandoned checkout API here: https://shopify.dev/api/admin-rest/2021-10/resources/abandoned-checkouts#[get]/admin/api/2021-10/che...

 

Regards,

To learn more visit the Shopify Help Center or the Community Blog.

csam
Shopify Staff (Retired)
267 40 51

Doing some more testing, I can confirm that the webhook is sent as soon as the cart transitions to the checkout page, before any information can be entered by the customer. If you subscribe to the checkout/update webhook as well, you should be able to collect any information entered by customers who are not already logged in.

 

Regards,

To learn more visit the Shopify Help Center or the Community Blog.