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
1829 270 410

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
1 0 1

I wanna know the solution too thanks for asking