What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Display SKU and variant metafield on line item using Checkout UI extension

Display SKU and variant metafield on line item using Checkout UI extension

NMaskey
Shopify Partner
15 0 4

Hello, 

 

What API do I use to display 

1. SKU

2. Variant Metafield 

 

on line items on checkout page using checkout UI extension?

 

NMaskey_0-1695665332587.png

 

I'm using "purchase.checkout.cart-line-item.render-after" extension target.

I see fields like id, title on CartLineItem API but not SKU/ variant metafields.

 

https://shopify.dev/docs/api/checkout-ui-extensions/2023-07/apis/cartlineitemapi

 

 

 

Replies 3 (3)

SBD_
Shopify Staff
1831 273 421

Hey @NMaskey 

 

These fields are currently unavailable. I've passed along your feedback!

Scott | Developer Advocate @ Shopify 

NMaskey
Shopify Partner
15 0 4

oh! We use variant metafield to display actual title of the product and is very essential for us to show this field and SKU on our checkout page line items sections. Right now, we have checkout.liquid customizations in place. We will not be able to migration to new checkout unless we have this feature.

Let me know when this will be possible. Thanks.

falcon0119
Shopify Partner
2 0 2

I wanna know the solution too thanks for asking