Hey @troylott
Can you try this?
Make sure your checkout domain (checkout.your-store.myshopify.com
) is NOT gated by password protection. You can request Shopify support to restrict password protection only to the storefront and allow checkout links (generated by cart recovery or Klaviyo) to remain accessible. it's technically a Shopify-side setting.
But you will have to ask support about this.
if you're truly headless, you may not even have a theme or Liquid access, right? if you had that, you can try to Set up a custom redirect in your .liquid
theme for the password page that allows access to /checkout
URLs.
I hope this helps and thank you for sharing your question here in the community.
Cheers
Arpit
I appreciate the response, Arpit. I submitted a support request to Shopify. Here is the response from their ‘specialized team’: To explore alternatives, one option is to edit your theme coding to allow access to the checkout for users with abandoned checkout links.
So, we are currently in the process of finding a Shopify partner to help us edit the theme code to allow access to the abandoned checkout while restricting access to the storefront with our password.
I’ll update this thread on whether or not we are successful.
Troy
Hey @troylott,
The behavior you’re seeing with the {{ event.extra.checkout_url }} is actually very likely to be expected behavior when previewing and testing an abandoned checkout flow with Shopify.
There are a few different factors that can cause {{ event.extra.checkout_url }} to not work as expected when testing. When previewing, you have access to the ten most recent checkout started events. When you preview as somebody who started, and then completed a checkout, this URL will direct you back to the homepage, because their cart no longer exists. Additionally, Shopify takes around 10 minutes to set the checkout rebuilding URL live. After a customer starts a checkout, {{ event.extra.checkout_url }} is sent to Klaviyo in the checkout started event, but it takes about 10 minutes for that URL to be functional. This usually isn’t an issue for people who actually enter the flow, because there’s likely a time delay longer than 10 minutes before the first email in the flow.
This all results in making this URL harder to preview and test, unfortunately. I’d recommend scrolling through the last 10 checkout started events, when previewing your email, and trying to find one over 10 minutes ago, that hasn’t purchased yet, and testing to see if the checkout URL for that email works. If not, let me know!
-Byrne
Thanks Bryne for the response.
For the first live test of the Abandoned Checkout flow, I made the flow live in Klaviyo, went to our Ecom, added a product in Cart, advanced to Checkout, entered my contact info, then stopped.
At 15 minutes, Shopify logged me in the system as an Abandoned checkout (Orders » Abandoned checkout).
The flow I built in Klaviyo has a 1 hour Time delay before sending the first abandoned email.
Interesting, Klaviyo sent the email at 60 minutes after I abandoned the cart, which was actually 45 minutes after Shopify logged me as an Abandoned checkout. (15 minutes (Shopify) + 45 minutes (Klaviyo) = 60 minute delay)
And the result of the email was the checkout link directed me to the protected storefront. I then temporarily removed the password from the storefront, tested the checkout link again, and the Abandoned checkout email worked just as it is supposed to.
Hoping I can successfully find a Shopify partner to edit the code to keep the password protection, while allowing the Abandoned checkout access without a password!