You can use the following variables to show the customer details in the artwork approval form when the artwork job is not associated with an order.
- artwork.artwork_customer.full_name: the full name of the customer
- artwork.artwork_customer.company: the name of the company the customer belongs to
- artwork.artwork_customer.full_address: the customer's full address
- artwork.artwork_customer.phone_number: the customer's phone number
- artwork.artwork_customer.email: the customer's email address
Here is an example of how you can modify the default Artwork Approval Template to show the customer's details when the artwork approval is not associated with an order.
Default Code
{% if artwork.order %}
<div class="order">
<ul>
<li><label>Date</label><span>{{ artwork.order.date_ordered | date: "%d/%b/%Y"}}</span></li>
</ul>
</div>
{% endif %}
</div>
</div>
Custom Code
Add the code in red to the default code shown above as follows:
{% if artwork.order %}
<div class="order">
<ul>
<li><label>Date</label><span>{{ artwork.order.date_ordered | date: "%d/%b/%Y"}}</span></li>
</ul>
</div>
{% endif %}
</div>
</div>
<div id="in_customer">
<h3>Customer</h3>
<h4>{{ artwork.artwork_customer.full_name }}<br>{{ artwork.artwork_customer.company }}</h4>
<span>
{{ artwork.artwork_customer.full_address }}
</span>
<span>
PH: {{ artwork.artwork_customer.phone_number }}<br/>
Email: {{ artwork.artwork_customer.email }}
</span>
</div>
Comments
0 comments
Please sign in to leave a comment.