Skip to main content
Contributor I
December 12, 2024
Solved

Missing variables when sending test emails

  • December 12, 2024
  • 5 replies
  • 105 views

Hello,

I am trying to draft 2 separate email templates (“Order Delivered” and “Order Refunded”) which will be automatically sent to customers via our Shopify admin whenever these 2 events have occurred. 

The problem I am currently having is that the unit prices are not showing up when I send a test email for these 2 templates. For reference, I have copied the unit price variable over from my “Order Confirmed” template which is working fine. Please see the screenshots below: 

 

The unit price variable I used for these 2 templates is : {{ line.price|money }}

Any help will be greatly appreciated. Thank you in advance!

    This topic has been closed for replies.
    Best answer by Taylor Tarpley

    Hi there ​@aaronchangms

     

    Thanks for sharing your question with the Community! 

     

    Do you mind going into your individual templates for order delivered and order refunded and using the unit price variable specific to each template and test if the variable shows successfully? This might be what’s causing the issue! 

     

    Thanks for participating in the community! 

    -Taylor 

    5 replies

    Taylor Tarpley
    Community Manager
    Community Manager
    December 20, 2024

    Hi there ​@aaronchangms

     

    Thanks for sharing your question with the Community! 

     

    Do you mind going into your individual templates for order delivered and order refunded and using the unit price variable specific to each template and test if the variable shows successfully? This might be what’s causing the issue! 

     

    Thanks for participating in the community! 

    -Taylor 

    Contributor I
    December 23, 2024

    Hi ​@Taylor Tarpley ,

    Thanks for your reply, much appreciated! I have tried going into the individual templates as suggested but I can’t seem to find the specific unit price variables. Are there any online resources/websites showing a list of the specific variables for each template type I can refer to?

    MANSIR2094
    Expert Problem Solver IV
    Expert Problem Solver IV
    December 23, 2024

    Hi,

     

    Thanks for reaching out!

     

    To troubleshoot this issue, it's best to review your code directly to identify potential discrepancies. Feel free to reach out to me with access to your Shopify admin or share additional details, and I'll guide you further.

     

    Looking forward to assisting

    you!

     

    Mansir Digital Portfolio
    Contributor I
    December 30, 2024

    Hi ​@MANSIR2094 ,

    Thanks for reaching out! I’ll drop you a personal message on how we can proceed then.

    MANSIR2094
    Expert Problem Solver IV
    Expert Problem Solver IV
    December 30, 2024

    Alright ​@aaronchangms 

    I await your response, I have dropped you a PM

    Mansir Digital Portfolio