Access to Product information and Storefront API in my app embed block

Hi,

I’m making a custom “Buy now” button and add extra functionality to it. This embed block will be used in a Product page. I want to access the product information in the embed block to enable the extra functionality.

Also, I want to access the Storefront API to add the product to the cart, when this button is clicked.

Are these patterns possible?

1 Like

Did you find an answer for this?

The docs are absolutely terrible.