Fix order fulfill display
This commit is contained in:
parent
bd9c7239ab
commit
2f34a43b28
@ -23,6 +23,7 @@
|
||||
</div>
|
||||
{% for form in form %}
|
||||
<div class="object__item object__item--col4">
|
||||
{% if item.variant %}
|
||||
{% with product=form.instance.variant.product %}
|
||||
{{form.id}}
|
||||
<figure class="item__figure">
|
||||
@ -33,6 +34,18 @@
|
||||
<span>{{form.quantity_fulfilled}} / {{form.instance.quantity}}</span>
|
||||
<span>{{form.instance.customer_note}}</span>
|
||||
{% endwith %}
|
||||
{% elif item.product %}
|
||||
{% with product=form.instance.product %}
|
||||
{{form.id}}
|
||||
<figure class="item__figure">
|
||||
<img class="product__image product__image--small" src="{{product.get_first_img.image.url}}" alt="{{product.get_first_img.image}}">
|
||||
<figcaption><strong>{{form.instance.variant}}</strong></figcaption>
|
||||
</figure>
|
||||
<span>{{product.sku}}</span>
|
||||
<span>{{form.quantity_fulfilled}} / {{form.instance.quantity}}</span>
|
||||
<span>{{form.instance.customer_note}}</span>
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="object__item object__item--col5">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user