Solved

New Template: Linking To Product Page Not Saving

  • 29 November 2021
  • 3 replies
  • 41 views

Badge +2

Hi!

I’m having an issue getting my product title {{ item.title }} to link to the product page in my abandoned cart flow. This is in the dynamic product block that shows what the contact left in their cart. Every time I try to enter this - it won’t save and I get the ‘saving’ spinning wheel of death.

I’ve tried: {{ organization.url }}products/{{ event.extra.line_items.0.product.handle }}

I’ve tried: {{ organization.url }}products/{{ item.product.handle }}

I’ve also tried putting in the company website: https://www.companysite.com/products/{{ item.product.handle }} 

 

Still… nothing is working. Any insight here.

 

However, when I do try just the company url - https://www.companysite.com it saves and works fine.

icon

Best answer by asempert 1 December 2021, 21:29

View original

3 replies

Userlevel 6
Badge +38

Hi @asempert,

Welcome to the Community and thanks for posting your question here!

Odd behavior that it does not save indeed. Are there other errors that come up or does it just get stuck in the saving phase? Take note that only variables available in the Flow are what is passed on to Klaviyo via integration. That said if Product link URL is not passed through relevant metrics you are using to trigger the flow ex. placed order etc, it won't be possible to use it.

Here is more information on how to use event variables. In addition, we have another useful article on How to View Raw Metric or Event Data in Klaviyo.

That said the cause could be that either of Started Checkout or Add to Cart metrics does not have product link URL that cans be referenced at this time. You can use other metrics that may suffice your goal and needs.

However, in the event that this could be a loading bug, I have created a ticket to see in case. If you would kindly followup with what success you have found or other info that would be great :)

 

Thank you!
Alex

Badge +2

It seems like it was a bug on the Klaviyo side! I removed the spaces from the {{organization.url }}products/{{event.extra.line_items.0.product.handle}} and it worked! 

Userlevel 6
Badge +38

Great thanks for reporting @asempert! Always important to follow exact syntax when working with code :)

Have a good one,

Alex

Reply