Transfer Cart Metafield to Order

StMartins1
New Member
4 0 0

When utilising "cart.setMetafields" how can this metafield be transferred to the order?

 

Following this example:

https://shopify.dev/docs/custom-storefronts/hydrogen/cart/metafields

 

If I set "Cart Attributes" I can see these straightaway on the final order. But if I create a matching metafield such as custom.gift on the order & draft order definitions this does not get set using cart.setMetafield.

 

As I understand it's setting the cart metafield successfully but this doesn't get transferred to the order?

Replies 0 (0)