Product image and customer info doesnt show in my custom email

Topic summary

A user is experiencing issues with a custom Shopify order confirmation email template where product images and customer information (shipping/billing addresses) are not displaying. They also need help adding subtotal and total price calculations.

Code Issue:

  • The provided HTML/Liquid template code appears corrupted or reversed in sections, making it difficult to parse properly
  • Missing proper Liquid syntax for displaying product images and customer data

Solution Provided:
Another user offered a fixed template that includes:

  • Proper display of product images
  • Subtotal and total price calculations using Liquid variables ({{ subtotal_price | plus: total_order_discount_amount | money }})
  • Structured order items loop with {% for line in line_items %}
  • Customer address conditionals for shipping and billing information

Status:
A working code solution has been shared, though the original poster has not yet confirmed if it resolved their issues. The fix demonstrates proper Liquid template syntax for accessing Shopify order data.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

Hi @Nirmine1111 ,

I have fixed the template to display image, subtotal and total.


    
    
    
    

    Copy code
    
        

            # Order Confirmation
        

    
        
            

Hey {{ customer.first_name }},

            

Thank you for your purchase, this email confirms your order. We will send you another email as soon as your order is {% if pickup_in_store? %}ready for pickup{% else %}shipped{% endif %}.

            

You can follow the status of your order by clicking the button below:

            

VIEW ORDER STATUS >

        

    
        

    
        
            ## ORDER NO. {{ order_name }}
            ### ITEMS ORDERED
            
                {% for line in line_items %}
                    - {{ line.title }}
                          {{ line.quantity }}
                    
                {% endfor %}
            

            Subtotal:  {{ subtotal_price | plus: total_order_discount_amount | money }}
            Total: {{ total_price | plus: total_order_discount_amount | money }}
        

    
        

    
        
            ### Customer Information:
            {% if requires_shipping %}
                

**Shipping Address:**
{{  shipping_address | format_address }}

            {% endif %}
            {% if billing_address %}
                

**Billing Address:**
{{ billing_address | format_address }}

            {% endif %}
        

    
        

If you have any questions, feel free to reply to this email or contact us at [{{ shop.email }}](mailto:{{ shop.email }}).

        

Many Thanks, Vikara Team

    

    

    
        # 10% OFF DISCOUNT
        

As thanks for shopping with us, we're giving you a discount coupon to use on your next purchase.

        
            ### VKL10
        

        

SHOP NOW >

    

    

    
        [SHOP](https://www.vikara.shop/products/)
        HOME
        [CONTACT](https://www.vikara.shop/pages/contact)