How can I use the Resource Picker in a CLI generated extension?

Hello @jamesauble

Solution 1:
The implementation goes beyond simply using the Shopify checkout extension. To achieve this, you will need to integrate the resource picker to select the product variant within an app built using the Shopify App Bridge. Additionally, you need to develop an API that manages the selected variants and integrate this API into your checkout extension.

To utilize a third-party API in the checkout extension, network access must be allowed in the app partner dashboard

and network access should be enabled in the shopify.extension.toml file.

Solution 2:
Instead of showing a resource picker on the admin page, you can utilize the checkout extension theme settings. To implement this follow below steps

  1. add the following code to the shopify.extension.toml file.

  1. go checkout the setting

  1. add your extension block

  1. result