How can I display SKU on cart and checkout pages?

Hi, I managed to display the SKU on the product page with this code:

{% assign current_variant = product.selected_or_first_available_variant %}
<span class="variant-sku">{{ current_variant.sku }}</span>

I can’t do that in the shopping cart and check out.
Can someone help?

Theme: Warehouse

It should look like this:


Cart

Product 1
Price
SKU

Product 2
Price
SKU


Thanks in advice, MBO

Hello @mbo ,

Use same code in input hidden field as value and place it inside the form tag in product single page.

e.g.


Thanks

Hello @Guleria ,

that works great. Many Thanks!

Hi,

We are using the same theme, where in the cart liquid would you add this code?

We are trying to get SKU or even barcode visible on products pages, cart and checkout.

Thanks