Hi @Sfmckelly
You are absolutely right. By default, Klaviyo's abandoned cart SMS links to a generic cart page, which can be a problem if the session expires and the cart is empty. To recreate the exact cart, you'll need to bring in a third-party app that can generate a unique cart recovery link.
If you're on Shopify, there are some fantastic apps that can help. ReCart, CartHook, and SMSBump are all great options that can restore abandoned carts with personalized links. Plus, some of these apps integrate seamlessly with Klaviyo.
Another option is to use Shopify's draft order feature with a custom script to rebuild the cart. And if you're a Shopify Plus user, you can even use checkout scripts to improve cart recovery.
I will like to know the setup you are actually working with, and I can suggest the best approach.
ok apparently I was able to choose the add to cart shopify metric version and that seemed to work for me( I think)
The other question I have now is how do i add a dynamic product title to the subject line and body of the email. I have tried.
{{ event.ProductName }} but it just leaves a blank space/
thank you
@Sfmckelly , awesome to hear that the Shopify "Added to Cart" metric worked out for you!
Now, let's tackle adding a dynamic product title to the subject line and email body. To do this, we need to tap into the right data structure.
For the subject line, try using this code: {{ event.extra.line_items.0.product.title }}. This should pull in the product title nicely.
If you want to display multiple products in the email body, we can use a simple loop:
{% for item in event.extra.line_items %} {{ item.product.title }} {% endfor %}
And if it's just one product, you can use the same code as the subject line: {{ event.extra.line_items.0.product.title }}.
Hit me up if you encounter any issues or need further assistance. I'm here to help!"
Hi @Sfmckelly !
If you want to include a dynamic product name variable in your SMS message, I would suggest using the following code: {{ event|lookup:'Product Name'|default:'' }} . This will pull in product name for the Added to Cart event!