Have your say in Community Polls: What was/is your greatest motivation to start your own business?

POS UI Extension | Variant ID or SKU is not exposed into the UI extensions via the useAPI hook

POS UI Extension | Variant ID or SKU is not exposed into the UI extensions via the useAPI hook

saiDev24
Shopify Partner
1 0 0

When the user selects a product and then its variant from the lists on the POS product list page, they land on the Product details page of the variant product in the useApi hook called in the 'pos.product-details.block.render' target inside a custom UI extension inside the same PDP page. We need to see the useApi return a product object with the main product's ID along with an identifier for the variant product, such as variant ID or SKU. 

But today, we only get the ID of the main product without any variant identifier.

 

Can we identify the ID/SKU of the variant page we landed on in the UI extension?

Replies 0 (0)