d
Topic
Posts:
1
March 26, 2012

Invoice Template Problems! This post is outdated

I've been trying for weeks to edit an existing PixelPrinter Invoice template to my liking and while I feel like I'm halfway there I just can't seem to get my product quantities, descriptions and pricing to propagate my table properly.

I'm sure I'm doing something wrong here, please help!

The problem starts down towards the bottom at my line_item.quantity

 

<img src="http://cdn.shopify.com/s/files/1/0100/4212/files/logo.png?2105" />

<br />
<br />

<div style="width: 50%; float: left;">
<fieldset class="alignHeight ship clean">
<legend><b>Ship To</b></legend>
  {{ shipping_address.name }}<br/>
  {% if shipping_address.company %}
    {{ shipping_address.company }}<br/>
  {% endif %}
  {{ shipping_address.street }}<br/>
  {{ shipping_address.city }}
  {{ shipping_address.province_code }}
  {{ shipping_address.zip | upcase }}<br/>
  {% if shop.country != if shipping_address.country_code %}
    {{ shipping_address.country }}
  {% endif %}
</fieldset>
</div>


<div>
<fieldset class="alignHeight bill clean">
<legend><b>Bill To</b></legend>
  {{ billing_address.name }}<br/>
  {% if billing_address.company %}
    {{ billing_address.company }}<br/>
  {% endif %}
  {{ billing_address.street }}<br/>
  {{ billing_address.city }}
  {{ billing_address.province_code }}
  {{ billing_address.zip | upcase }}<br/>
  {% if shop.country != if billing_address.country_code %}
    {{ billing_address.country }}
  {% endif %}
</fieldset>
</div>

<br />
<div style="width:100%">
<fieldset style="height:675px">
<legend><b>Order Summary</b></legend>

<table border="1" width="100%">
	
		        <tr>
			<th>Qty</th>
			<th>Product Description</th>
			<th>Price</th>
                        </tr>

</table>

<table border="1" width="100%">
<tr>
{% for line_item in line_items %}
<td>{{ line_item.quantity }}</td>
<td>{{ line_item.title }}</td>
<td>{{ line_item.price | money }}</td>
{% endfor %}
</tr>
</table>

<div style="text-align:right;div:rtl">
                        <br />
                        Subtotal: {{ subtotal_price | money }}
                        <br />
                        Tax: {{ tax_price | money }}
                        <br />
                        Shipping: {{ shipping_price | money }}
                        <p><b>Total Price:</b> <u>{{ total_price | money }}</u></p>
</div>
</fieldset>
</div>

Log in or sign up for an account to reply.

f
Your Reply