Adding SKU to Cart Page

SAI_Infusion_Te
New Member
9 0 0

I am trying to have the SKU show up on the cart page.  I have it showing up on the product pages and the confirmation emails.  Would I use the same code for the cart page as well?

Thanks for any help! 

0 Likes
Caroline_Schnap
Shopify Staff
Shopify Staff
5704 1 341

You'll need to use the following in cart.liquid:

{{ item.sku }}

So it's slightly different than what you'd use elsewhere.

Let me know how that goes!

0 Likes
Mark_vd_Bergh
Tourist
3 0 2

If inside your cart form yes.

 

But outisde it would be like this:

{% for item in cart.items %} {{ item.sku }}, {% endfor %}

Hilary_Nagler
Tourist
9 0 4

I am really new to css so forgive ... This post was helpful and I was able to get the sku to show in the cart, but it is showing up in the TOTAL column under the price. Where (and what code) do I put in the code to display the sku under or next to the item description?

I added {% for item in cart.items %} {{ item.sku }}, {% endfor %} as an independant line at the end of the {% for item in cart.items %} {{ item.sku }}, {% endfor %} section in the cart.liquid template.

Any and all help appreciated! Thx!;)

0 Likes
Riaz
New Member
1 0 0

I have added sku on cart but it is not showing on ajax cart and checkout page please help me 

0 Likes