Skip to main content
Contributor I
January 22, 2021
Solved

Abandoned cart flow: cart empty in the website after clicking on the button "return to your cart' in the email

  • January 22, 2021
  • 23 replies
  • 2638 views

Dear All, 

I created my 1st flow: Abandoned cart 

Trigger: When someone checkout started 

Filters: Place order zero times since starting this flow 

 

The abandoned card/references of the product/pictures appear well in the email but when we click on the button ‘return to your cart’ the cart seems empty on the website. The client is not able to find again his cart with the products and quantities.

I checked the settings and I correctly used in the button: {{ event.extra.checkout_url }}

 

Do you have any idea?

thank you so much

This topic has been closed for replies.
Best answer by David To

Hello @Leon.andaur,

Are you using {{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }} as the button’s Link URL? Using this specific link for your button’s Link URL should rebuild your recipient’s cart for WooCommerce as highlighted in the Rebuilding Carts from an Abandoned Cart Flow section of the How to Integrate with WooCommerce article. 

Hope this helps!

-David

23 replies

Contributor I
October 17, 2022

Hello @Vertara,

Do you happen to be using Magento 2 with Klaviyo? If so, then that dynamic syntax you’ve highlighted should still function similarly to the default cart rebuild link of {{ organization.url|trim_slash }}/reclaim/checkout/cart?quote_id={{ event.Extra.QuoteID }} provided within Klaviyo’s default, pre-build abandoned cart flow for Magento 2. 

Users who click on this link typically would not need to be logged into their account to access their cart. Furthermore, since this is a cart rebuilt key, the recipient should also be able to rebuild their cart should they be using a different device, such as their phone and clicking on the link to be returned back to their cart.

I hope this helps!

David

Hi David,

I seem to be doing everything you suggested but still have an empty cart.

This is the url I am using {{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

It is taking me back to the cart but it’s always empty

Any ideas why this might be?

Thanks

Ric

Taylor Tarpley
Community Manager
Community Manager
October 18, 2022

​​​​@ricbrooks

 

Did you make sure to check @David To’s other suggestion he mentioned above? 

Hey @Vertara,

I would recommend checking to see if the users you are previewing as has already completed their order. Klaviyo’s email preview tool allows you to preview as any user who has recorded an event that triggers your flow; in this case, a Started Checkout event. This would also include customers who may have triggered the Started Checkout metric and then completed their order. When previewing as a customer who has completed their order, since the cart attempting to be rebuilt has been emptied, it would be expected that through previewing you would be seeing an empty cart page. 

Similarly, if a customer has made updates or changes to their cart, including emptying their cart; the cart button to rebuild their cart would direct users to their new updated cart as opposed to matching the metadata shared from the Started Checkout event. 

Lastly, I would recommend previewing as a customer who recently trigged the Started Checkout event. Depending on how you have set up your Magento 2 backend settings, this cart for each of your customers do have an expiration. When a user’s cart does expire, it would show the cart is empty when attempting to return and rebuild it through that dynamic link. 

David

 

Hope this helps! Want to get this working for ya!

-Taylor 

Contributor I
June 5, 2023

Hello - I’m using WooCommerce and used the code found above for the Return to Cart link… but it’s still linking to an empty cart. Is there a new fix?