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 Cart items don't come with properties.

Abandoned Cart items don't come with properties.

lovecoding
Shopify Partner
1 0 0

I have been building an app that attaches some additional properties (2 public properties and 3 private properties) to orders (for specific types of products) before checkout. It works fine in the normal flow.

 

Recently I have been experiencing a problem where some orders don't have the item properties, I found that they come from abandoned carts.

 

Shopify sends 2 links with the abandoned cart email.


1. Checkout link

2. Store link

 

lovecoding_1-1705678233350.png

Here are the links.
- Continue checkout
- Visit our store

The first link will open the checkout page. It's fine. I can see the item properties there.

lovecoding_2-1705678523331.png

The second link opens store Home Page with the cart items added regardless the browser session.
If I go to cart page, there was a cart item I added but no item properties which is problem.

lovecoding_3-1705678742344.png

 

Here is the original cart page that is expected. As you can see there are 2 links like what you can see on the checkout page on the above.

lovecoding_4-1705678830668.png


When customers use the second link to checkout abandoned carts, those orders are placed without the item properties.

Reply 1 (1)

Liam
Community Manager
3108 344 899

Are you attaching these to orders as line item properties? Is possible that the "Visit our store" link is intentionally designed to not include any cart attributes or line items - are the products appearing in the cart because they were added during a previous session on the store and are now cached?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog