Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Displaying product cost on draft order page

Displaying product cost on draft order page

Dean_Kara
Visitor
2 0 1

Hi everyone,

 

We process a number of order via phone/e-mail and, depending on the Customer, will sometimes apply different discount levels.  In order to do this more efficiently it would help if we could display the cost price of each product on the draft order page:

 

Draft order.png

I assume that this would need to be done somewhere like customers/orders.liquid and update

 

</td>
<td data-label="{{ 'customer.order.sku' | t }}">{{ line_item.sku }}</td>
<td data-label="{{ 'customer.order.price' | t }}">{{ line_item.price | money }}</td>
<td data-label="{{ 'customer.order.quantity' | t }}">{{ line_item.quantity }}</td>
<td data-label="{{ 'customer.order.total' | t }}">{{ line_item.quantity | times: line_item.price | money }}</td>
</tr>

 

to something like:

</td>
<td data-label="{{ 'customer.order.sku' | t }}">{{ line_item.sku }}</td>
<td data-label="{{ 'customer.order.price' | t }}">{{ line_item.price | money }}</td>

<td data-label="{{ 'customer.order.cost' | t }}">{{ line_item.cost | money }}</td>
<td data-label="{{ 'customer.order.quantity' | t }}">{{ line_item.quantity }}</td>
<td data-label="{{ 'customer.order.total' | t }}">{{ line_item.quantity | times: line_item.price | money }}</td>
</tr>

 

Am I on the right track?

 

Thanks a million

Replies 0 (0)