Solved

Order Confirmation | Purchase Date

  • 14 February 2021
  • 7 replies
  • 473 views

Badge

Where can I find the purchase date tag (for each purchase)? I tried to find it but I couldn’t. I could only find the first purchase date, but that doesn’t work for an order confirmation email because the first purchase is not the same as the second/third or 100th purchase. Does anyone have an answer?

icon

Best answer by Dov 5 April 2021, 20:58

View original

7 replies

Userlevel 7
Badge +47

Hey @MNgo,

As mentioned in the Using the “today” variable subsection of the  How to Format Date Variables in Templates Help Center article: The today variable allows you to display today’s date at the time a message is sent.

This means that using the {{ today }} variable would not update and pull in the current date each time the email was opened. Instead, the date would stay static based on when the email was sent out. 

Although I don’t have any knowledge in terms of all the projects being worked on by our internal teams, our product teams and engineering teams are always looking to improve the experience and performance of all Klaviyo built integrations! For example, you can actually find a running list of change-log and improvements between the Klaviyo and WooCommerce integration on the WordPress plugin page for Klaviyo under the Developer’s tab. If there were any larger changes, we’re sure to share the exciting news out to all our Klaviyo members!

David

 

Userlevel 7
Badge +47

Hey @MNgo,

The event variable that @Bobi N. highlight would only be available with a Shopify integration. Since each integration sends a different set of data in a different structure to Klaviyo, you would not be able to use this event variable to replicate pulling in when an order was process if you were using a WooCommerce integration. From my knowledge, I don’t believe WooCommerce is passing this sort of data as part of their Placed Order or Fulfilled Order events. 

If you were sending an order confirmation out though, a potential work around would be using the {{ today }} variable as detailed in our How to Format Date Variables in Templates Help Center article. This way, if you had a order confirm email sent out when a user places an order, you can still inform the recipient of their order date. 

I hope this helps!

David

Userlevel 5
Badge +20

@BalandiTeam 

If you trying to do this in a flow started by metric placed order you can use this code {{ event.extra.processed_at }} and it will show when the order was processed exact time date and time.

 

But if you are trying to use this in a campaign it won’t work and I don’t think there is dynamic code for campaigns to show last order date for each customer differently.

Badge

Thank you Bobi, much appreciated!

Userlevel 7
Badge +45

Hi @BalandiTeam,

Thank you for sharing this question and thank you @Bobi N. for your reply.

 

@BalandiTeam

If you trying to do this in a flow started by metric placed order you can use this code {{ event.extra.processed_at }} and it will show when the order was processed exact time date and time.

 

But if you are trying to use this in a campaign it won’t work and I don’t think there is dynamic code for campaigns to show last order date for each customer differently.

 

You are correct that this tag would not work in a campaign email because we rely on the data associated with the triggering event of the flow to dynamically populate information about that event, such as the processing date.

In general, you can view all tags associated with any given event, for example Placed Order, by previewing a flow email in a flow triggered off of that event.

Once in the email template editor, click Preview on the left-hand side. You’ll see a popup saying, Choose a recent event to preview with. In the window, you will see a recent event that corresponds with the flow's trigger. If you want to look at the data for a different individual’s event, toggle left and right using the arrow buttons.

This preview window will show all of the data available for that particular event metric that can be populated in the flow email.

image10.gif

 

From here, click on any given item in the preview i.e. Item Count and use the tag associated with this variable in your email. For more detail on this topic, we have a great help center article here.

 

Thanks, and have a great day.

 

 

Badge

@Bobi N. Hi Bobi, is the {{ event.extra.processed_at }} code only available for Shopify integrated accounts? I don’t suppose you have a solution to pull through order date for WooCommerce?

Thanks in advance! 

Badge

Hi @David To , I thought about using the {{ today }} variable, but I was concerned that this date would pull through the current date each time the email was opened. E.g. email triggered and sent on day of Placed Order event 02/02/2022. Email opened again 03/02/2022 - would the date now display 03/02/2022 instead of actual send/order date 02/02/2022? 

Are there any upcoming improvements in the Klaviyo roadmap for WooCommerce? I feel Klaviyo is more suited for Shopify.  

Thanks!

Reply