SKU in cart / checkout

Solved
mbo
New Member
2 0 0

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

0 Likes
Guleria
Shopify Partner
1463 301 416

This is an accepted solution.

Hello @mbo ,

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

e.g. 

<input id="sku" type="hidden" value="{{ current_variant.sku }}"  name="properties[SKu]">

Thanks

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
mbo
New Member
2 0 0

Hello @Guleria,

that works great. Many Thanks!

 

0 Likes