Skip to main content
Contributor I
March 10, 2023
Solved

Abandonded cart total amount shortcode

  • March 10, 2023
  • 1 reply
  • 180 views

How do i add the total cart total in a klaviyo abandoned cart email through a shopify integration?

 

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @RedSolider!

     

    My colleague Dov actually addresses this topic here:

     

    To summarize what he said, the default code for the Add to Cart snippet (which is what facilitates the abandoned cart flow) only allows for a single item per event, so you can't combine products from different events into a single email. In order to accomplish this, you would have to customize the event like in this sample code from the Developer Portal.

     

    However, a similar effect can be established by using Viewed Product tracking to send an email with a customer’s recently viewed products, as documented here:

     

    If you do wish to go the custom event route and you think you might need some extra development help, you can always reach out to one of our wonderful Official Klaviyo Partners.

     

    Thanks for using the Community!

    - Brian

    1 reply

    Brian Turcotte
    Klaviyo Alum
    March 10, 2023

    Hi @RedSolider!

     

    My colleague Dov actually addresses this topic here:

     

    To summarize what he said, the default code for the Add to Cart snippet (which is what facilitates the abandoned cart flow) only allows for a single item per event, so you can't combine products from different events into a single email. In order to accomplish this, you would have to customize the event like in this sample code from the Developer Portal.

     

    However, a similar effect can be established by using Viewed Product tracking to send an email with a customer’s recently viewed products, as documented here:

     

    If you do wish to go the custom event route and you think you might need some extra development help, you can always reach out to one of our wonderful Official Klaviyo Partners.

     

    Thanks for using the Community!

    - Brian