Solved

add customers payment method to order confirmation

  • 30 April 2021
  • 2 replies
  • 26 views

Badge

Hey, I want to to setup an order confirmation flow which shows the customers selected payment method (with no real coding experience).

There are a couple of methods like Amazon Pay, Paypal, Klarna and more  in the shopify Store.

I came across:

https://shopify.dev/docs/themes/liquid/reference/objects/transaction#transaction-gateway but https://shopify.dev/docs/themes/liquid/reference/objects/transaction#transaction-payment_details seems to fit my needs better.

But when i add

{{ transaction.extra.gateway_display_name }} or {{ transaction.extra.gateway }} or {{ event.extra.payment_details }} or {{ event.extra.payment_details.credit_card_company }} my preview always shows nothing.

Paypal isn’t a credit card company maybe that’s why i see no result.

Can someone give me a hint or a ressource on how to get the payment method based on customers Choice?

Thanks in advance.

icon

Best answer by david.to 1 May 2021, 15:17

Hello @Frank,

I would first recommend looking into the following articles as they would guide you on how to pull in event data to be displayed within Klaviyo emails. Both Klaviyo and Shopify use different syntaxes and therefore the syntaxes provided in those Shopify documents would not translate over to Klaviyo as they would only be meant for Shopify Notification Templates.

Keep in mind that Klaviyo emails can only parse and display syntaxes/tags referencing event data within their appropriate Flows and not with a campaign or an email template not housed within a flow. Therefore, if you were previewing the email you created in either a campaign or as a general email template, those syntaxes would not display. 

Using the Klaviyo preview tool within your Flow email allows you to see a list of all the metadata that is shared and synced to Klaviyo. Doing so would allow you to select the variable and value you want to display and also offer you the dynamic syntax needed to add to your templates to display them when previewing as highlighted in the gif found in the How to Find Event Variables section of the About Using Event Variables to Personalize Flows article. 

Hope this helps!

-David

 

View original

2 replies

Userlevel 3
Badge +3

Hello @Frank,

I would first recommend looking into the following articles as they would guide you on how to pull in event data to be displayed within Klaviyo emails. Both Klaviyo and Shopify use different syntaxes and therefore the syntaxes provided in those Shopify documents would not translate over to Klaviyo as they would only be meant for Shopify Notification Templates.

Keep in mind that Klaviyo emails can only parse and display syntaxes/tags referencing event data within their appropriate Flows and not with a campaign or an email template not housed within a flow. Therefore, if you were previewing the email you created in either a campaign or as a general email template, those syntaxes would not display. 

Using the Klaviyo preview tool within your Flow email allows you to see a list of all the metadata that is shared and synced to Klaviyo. Doing so would allow you to select the variable and value you want to display and also offer you the dynamic syntax needed to add to your templates to display them when previewing as highlighted in the gif found in the How to Find Event Variables section of the About Using Event Variables to Personalize Flows article. 

Hope this helps!

-David

 

Badge

Hey @david.to,

thank you for your time and effort. Exactly what i needed! It helped me a lot already!

:relaxed:

Frank

Reply