Skip to main content

I have set up an abandon cart flow using the add to cart trigger, im just wondering if anyone knows what dynamic code to put in so that when they press on the email it takes them to their cart, or do you send them to your product, if so how do you do this.

I’ve used klayvios template but the price doesn’t show, i also want to add a dynamic coupon onto this aswell so if anyone knows how that would be great

Hi @avidagencyuk, welcome to the community!

If you want to link directly to the cart, or even the checkout page, the code and method to do this varies by your ecommerce platform. 

I’m going to take a big guess that you’re on Shopify, and if so, you can use Shopify’s URL method that can add an item to a cart (or multiple items to the cart) from a link here - they call this the “cart permalink” 

@stephen.trumble shared this in a previous thread that you may want to try if you just want a button that adds every item to their cart:

{{ organization.url }}/cart/update?{% for item in event.extra.line_items %}updatese{{ item.variant_id }}]={{ item.quantity|floatformat:0 }}{% if not forloop.last %}&{% endif %}{% endfor %}

If you want to also apply a discount code, you can reference this document here:

If you’re using another platform, some of them has their own methods to add items to the cart as well.


Reply