Hi,
I’m working with Checkout UI Extensions. I need to add a custom block on the “Thank you” page – the target is purchase.thank-you.block.render.
The addition works, but I’m having trouble saving additional order information in the metafield. I’m using:
const applyMetafieldChange = useApplyMetafieldsChange();
However, I’m getting an error in the console:
Cannot call 'applyMetafieldChange()' on target 'purchase.thank-you.block.render'. The corresponding property was not found on the API.
I don’t quite understand how I can save additional information in the metafield. Any hints?