Skip to main content
Solved

I am trying to use product_line_items attributes in Order Conformation event?


Forum|alt.badge.img+1

Hello,

we are trying to implement various flows using attributes in product_line_items array in the Order Conformation event JSON.

Unable to add any attribute just nested below top level of JSON like attributes in second level or third level.

How can I do it?

 

Best answer by Brian Turcotte

Hi @suryainno!

 

It’s actually expected behavior for Klaviyo to only read top-level attributes, so the only way to accomplish this would be to implement some sort of custom solution. One potential solution that comes to mind would be to create a separate custom event that is triggered alongside the “Order Confirmation” event, but contains a top-level attribute that corresponds to the product_line_items array.

 

However, this would be a custom project that would be beyond the scope of support/community, so you’re always welcome to reach out to one of our wonderful Official Partners for further development help.

 

Best,

Brian

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

2 replies

Brian Turcotte
Forum|alt.badge.img+37

Hi @suryainno!

 

It’s actually expected behavior for Klaviyo to only read top-level attributes, so the only way to accomplish this would be to implement some sort of custom solution. One potential solution that comes to mind would be to create a separate custom event that is triggered alongside the “Order Confirmation” event, but contains a top-level attribute that corresponds to the product_line_items array.

 

However, this would be a custom project that would be beyond the scope of support/community, so you’re always welcome to reach out to one of our wonderful Official Partners for further development help.

 

Best,

Brian


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 1 reply
  • March 8, 2023

 

Brian Turcotte wrote:

Hi @suryainno!

 

It’s actually expected behavior for Klaviyo to only read top-level attributes, so the only way to accomplish this would be to implement some sort of custom solution. One potential solution that comes to mind would be to create a separate custom event that is triggered alongside the “Order Confirmation” event, but contains a top-level attribute that corresponds to the product_line_items array.

 

However, this would be a custom project that would be beyond the scope of support/community, so you’re always welcome to reach out to one of our wonderful Official Partners for further development help.

 

Best,

Brian

Hello Brian,
Thank you for your reply and clarification.
actually we have added those data points in the Order Conformation it self as an array of things. I don’t know is it a good solution or not but it worked.