Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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:
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
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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025