After upgrading to the dev platform, the function ID now changes each time I deploy the function, meaning the discount linked to the previously used function ID no longer works after deploying the function.
Why is this / how do I get the correct extension id, and how do I ensure the discount continues running after a function update?
The first issue is as expected, and described here:
The second is not necessarily expected. You are seeing a different ID in the shopifyFunctions query, for the same function, each time you run deploy? How about with dev? Does your extension.toml have the same uid and handle each time you deploy? (Again this uid will be a different ID, but it is what should be used to match the extension during deployment).
If #2 is still an issue for you, could you DM me your app ID? I’ll start a message.