Cart Transforms lost after saving cart to draft order

My App is using a Cart Transform Function to update a line item’s price, few of our users after changing the line item’s price want to save the current cart to Draft Orders, and later finish it. But the Draft Order doesn’t retain the function’s results (the price changed), is that a bug? Am I missing anything?

Thank you team :slight_smile:

Hi @JV_Ferreira

Cart Transform Functions do not persist their changes to Draft Orders. This is not a bug, but expected behavior due to how Shopify Functions and Draft Orders work. You must handle Draft Order price overrides separately via the Admin API or other custom logic.