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

Reply 1 (1)

BenPeaked
Visitor
1 0 0

Hi Dean, 

 

     I am searching for the answer to the exact same question for the exact same reason! 

 

I would love to hear from you if you found a solution to this whether that was in house development, or provided via an APP.