Fetching Metaobjects in Cart and Checkout Validation Functions on Shopify Plus

I want to check if cart and checkout validation functions on Shopify Plus can access metaobjects. Each cart line includes a serial_unit attribute, and that value corresponds to a metaobject that must be verified before allowing the customer to proceed. Can this be done with the current Function APIs, or is there an alternative approach I should consider?

Hi Kedar,

At the moment you can access Metafields, but not Metaobjects.

As an alternative you can consider either of these options:

A. Have a Checkout UI Extension use the Storefront API to retrieve Metaobject information. Then store the verification status in a cart metafield, a cart attribute or line item attribute that the Cart and Checkout Validation Function can use.

B. Use the theme or a theme app extension to retrieve Metaobject information. Then store the verification status in a cart attribute or line item attribute that the Cart and Checkout Validation Function can use.