Skip to main content
Contributor II
June 20, 2023
Solved

dynamic data for Woocommerce Reorder not working

  • June 20, 2023
  • 4 replies
  • 180 views

This is for Woocommerce.

I am trying to set up a flow where every month they receive an email to encourage them to reorder their previous purchases. 

 

Problem:

Not pulling the product image

Not pulling the ordered products product page url..

 

What is working:

Pulls the product name, price etc

 

The weird thing is I have an abandoned cart flow which already works. (pulls image, name data etc correctly).

 

When I tried the same setup, it would not work. I assume, since the add to cart event pushes slightly different properties.

 

I have the following setup: 

 

 

Originally for the image, I tried this: {{ item.0|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'|default:'' }}

 

 I also tried: 

 

And for the product page url: {{ event.extra.Items.0|lookup:'$extra'|lookup:'URL'|default:'' }} => {{ item.0|lookup:'$extra'|lookup:'URL'|default:'' }}

However, this does not even show.

 

Finally, a button URL.

It is still unclear to me how to add the dynamic URL to the button href=””. Probably because of the above problem, nothing shows.

 

Any help appreciated. Most of the examples are for Shopify, so the answer is not obvious.

 


 

This topic has been closed for replies.
Best answer by stephen.trumble

Hey @BenAdams 

Thank you for your patience! 

Did you try removing the “.0”  from the URL. It would look like this: {{ item|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'  }}

 

4 replies

stephen.trumble
Klaviyo Alum
June 22, 2023

Hey @BenAdams 

Thanks for asking the community about your replenishment flow!

Quick question, what metric are you using to trigger the flow? Placed Order or Ordered Product? 

-Stephen
BenAdamsAuthor
Contributor II
June 23, 2023

Placed Order

BenAdamsAuthor
Contributor II
June 26, 2023

Hi @stephen.trumble can I get a bit more help on this one please? Really stuck here.

stephen.trumble
Klaviyo Alum
June 27, 2023

Hey @BenAdams 

Thank you for your patience! 

Did you try removing the “.0”  from the URL. It would look like this: {{ item|lookup:'$extra'|lookup:'Images'|lookup:'0'|lookup:'URL'  }}

 

-Stephen