Skip to main content
Contributor II
March 1, 2021
Solved

Abandon Cart Flow - Product links not working

  • March 1, 2021
  • 20 replies
  • 2230 views

Hi there,

A few months ago I noticed the products linked in my abandoned cart flows were taking users to a ‘page not found’ screen. I saw it was due to a ‘/’ missing from the URL. 

I revised my product code to {{ organization.url }}/products/{{ item.product.handle }} and that seemed to fix the issue. 

Recently, I tested my abandon cart email again and noticed the url the product link is taking users to has switched back to: theunistore.com.auproducts (missing a ‘/’). I have not edited my product code since the last time I fixed it so have no idea what’s causing the problem.

Thanks in advance for your help!

 

 

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

    Hey @vickieex 

    Adding to @caroline’s comments, one solution that may be easier than adding the “/” manually within all your email templates’s button and product title syntaxes - which may get strenuous - would be to update how Klaviyo is recognizing your {{ organization.url }} syntax.

    In this case, if you updated your Organization URL within your Account settings to include this “/” so that your website reads “example.com/”; then those dynamic links within your Abandoned Cart emails would automatically amend this “/” when rendered. This strategy is further highlighted by @shoshana.antunes in the follow Community Post: 

    Let us know how this goes!
    - David

    20 replies

    caroline
    Klaviyo Alum
    March 1, 2021

    Hi there,

     

    Thanks for sharing with the Community! Is it possible that you did not save the changes the first time you edited the URL structure?

     

    Best,

     

    Caroline

    Caroline Lu
    vickieexAuthor
    Contributor II
    March 1, 2021

    Hi there! 

    I did save the URL structure as it was working for several weeks post edit when I tested it. When I clicked ‘edit’ the link was still the revised link. It just no longer works in the emails sent out.

    caroline
    Klaviyo Alum
    March 1, 2021

    Hi @vickieex,

    Just to make sure I’m understanding correctly, the structure of the URL in the template is still “{{ organization.url }}/products/{{ item.product.handle }}”, but the first slash mark is removed when the URL renders?

    Best,

    Caroline

    Caroline Lu
    vickieexAuthor
    Contributor II
    March 3, 2021

    Hi Caroline,

    Yes that’s correct. Not sure why the slash mark is removing itself but it’s causing all product links to break when the abandoned cart email gets sent to customers.

    David To
    Klaviyo Employee
    David ToAnswer
    Klaviyo Employee
    April 27, 2021

    Hey @vickieex 

    Adding to @caroline’s comments, one solution that may be easier than adding the “/” manually within all your email templates’s button and product title syntaxes - which may get strenuous - would be to update how Klaviyo is recognizing your {{ organization.url }} syntax.

    In this case, if you updated your Organization URL within your Account settings to include this “/” so that your website reads “example.com/”; then those dynamic links within your Abandoned Cart emails would automatically amend this “/” when rendered. This strategy is further highlighted by @shoshana.antunes in the follow Community Post: 

    Let us know how this goes!
    - David

    vickieexAuthor
    Contributor II
    April 30, 2021

    David’s solution of adding a ‘/’ to the website URL in account settings worked.

    Thanks!

    Contributor IV
    August 28, 2021

    Hello there @caroline @david.to 

    I am having the same problem, the code that was in the templete of Abandon Cart 

    {{ organization.url|trim_slash }}/cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

    Is senting to a page not found page.

    This code/link is different to the ones above as they say proudct in them.

    I have a woocommers website. Could someone please advice me what code/link to use to take my customers to their abandoned cart within my website?

    Could you also advice the code/link when in browse adandonment as the templete gave me

     {{ event.Url }} which dosn’t work either.

    Really looking forward to your reply and getting all this set up.

    Thank you in advance.

    Contributor IV
    August 28, 2021

    @david.to

    I just read another feed in the forum, where you gave the link

    {{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }} to solve the problem so my Adandon Cart email. Is this right for woocommers.

    many thanks

    Contributor IV
    August 29, 2021

    Hi @caroline  @david.to 

    I have now tested all the links in this chat for Abandoned Cart Button, with the extra ‘/’ but NONE of them work for me. They go to page not found or a blank page. Please help.

    Many Thanks

    Taylor Tarpley
    Community Manager
    Community Manager
    August 30, 2021

    Hi @Reestar

     

    Thank you for sharing your question with us and for joining our Community Forum! We are so happy to help you and congrats on completing your first post!

     

    Sorry you’ve been having so much trouble with your Abandon Cart email! When troubleshooting, it’s important to note a few things here and take a couple steps back to see what went awry. First, each integration has a unique setup so it is important to look up specific Help Center Articles and Community Posts specific to your integration. For example, WooCommerce’s Browse Abandonment Flow is different than other integrations because the WooCommerce plugin automatically installs the ‘Viewed Product’ snippet used in this specific flow. If you’re running into problems with the ‘Abandon Cart’ Link and setting up the ‘Browse Abandonment’ Flow, I would first ensure that you are in fact using WooCommerce as an integration and that your plugin is up to date on the latest version of WooCommerce! 

     

    Second, I would double check to ensure that we are in the correct flow, which is triggered by a WooCommerce ‘Started Checkout’ metric. As found in this article, Integrating with WooCommerce, this specific integration’s URL for Abandon Cart should look like the URL your last message, manually adding the ‘/’ before ‘cart’:

    {{ organization.url }}/cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

     

    To verify that you’ve set up the link correctly, make sure there is not additional formatting happening when you copy and paste the URL and test the it by adding this link to the end of your website domain:

     ExampleWebsite.com/cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

     

    The reason why your cart link might not have worked originally is because your organization’s URL in Account Settings might not have a ‘/’ at the end. As @david.to stated earlier, the ‘organizational. url’ tag dynamically pulls from the URL in Account settings.

     

    Additionally, if your website is in a different language, you will need to translate the word ‘cart’ into your website language and replace the English word for cart in your URL. I have seen other customers manually format their URL’s perfectly, however, needed to translate ‘cart’ in order for their link to properly function. 

     

    Thank you for sharing your question in the Community! 

     

    Best,

    Taylor