Skip to main content
Solved

Woocommerce # of orders custom property in klaviyo


Forum|alt.badge.img+3

I would like to have a custom property that has a subscribers # of orders through our Woocommerce store.

So when a customer completes an order it would update that property by one each time.

The final goal is to use this property value for blocks in my email templates. Depending on the number of orders a different offer would be shown.

I’m trying to use zapier to set this up but run into a problem with the required “subscriber” data field.

Best answer by DavidSandel

This is a standard metric in the Woocommerce <> Klaviyo plugin. No need to use zapier. If that event metric isn’t tracking, you may have other problems on your website. 

View original
Did this topic or the replies in the thread help you find an answer to your question?

7 replies

DavidSandel
Partner - Silver
Forum|alt.badge.img+21
  • Partner - Silver
  • 155 replies
  • Answer
  • July 26, 2022

This is a standard metric in the Woocommerce <> Klaviyo plugin. No need to use zapier. If that event metric isn’t tracking, you may have other problems on your website. 


Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 8 replies
  • July 27, 2022

That’s great to hear! 
Klaviyo is indeed tracking orders from Woocommerce.

Now which condition would I use to only display a block to folks who have ordered once or have never ordered before?



 


DavidSandel
Partner - Silver
Forum|alt.badge.img+21
  • Partner - Silver
  • 155 replies
  • July 28, 2022

You may want to look up the Klaviyo help docs on segmenting.


Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 8 replies
  • July 28, 2022

Thanks David. Yes I could segment an email for folks who made a purchase and those who didn’t. I already have flows that do just that.

What I’m trying to do is show/hide a block in a template depending on purchase history.
“Conditional Settings” is what i’m working with here.

 


DavidSandel
Partner - Silver
Forum|alt.badge.img+21
  • Partner - Silver
  • 155 replies
  • July 28, 2022

They’re called dynamic blocks in the email editor. Klaviyo has a really great resource for that as well. 


Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 8 replies
  • July 28, 2022

https://help.klaviyo.com/hc/en-us/articles/115005258208-How-to-show-or-hide-template-blocks-based-on-dynamic-variables

Yes, I’m reading about this and i’m excited to use this in my templates.


Unfortunately I’m unable to figure out the condition I would need to use here to show/hide a block if the customer made a purchase with woocomerce.


Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • July 29, 2022

Hi @RedPhive,

Thanks for sharing this question with us. And thank you @DavidSandel for your help on this.

@RedPhive it’s worth mentioning that show/hide logic can be based on event data that includes information about a given event (i.e. the item name, item price etc.) rather than a discrete event (i.e. a placed order or a started checkout). It can also be based on profile data i.e. custom properties or profile properties.

With that in mind, you could create a segment-triggered flow (you’ll want to build a segment defined as: What somebody has done > Placed Order at least once over all time.) Along with an update profile property action to update all these profiles (see example below). 

The idea here is to use the latter method (based on profile data) to achieve your goal. The trigger would be the segment of profiles you want to use for the show/hide logic and then you’ll backpopulate the flow using the second radio button: “Schedule for each step relative to when I click the back-populate button”. That will update all the profiles in this segment with “purchaser = true” (tagging the profiles with this property, universally).

You could then use this newly created profile property in the show/hide logic in your emails for your purchasers using the aforementioned guide.

I hope that’s helpful.