Shopify Cart Validation Function not appearing in Shopify Admin Checkout Rules
Hi there! this is my first post in Discord - and i should probably highlight that im a complete newbie to Gadget. Im a frontend Shopify Developer way out of his comfort zone having a go building an app for the first time.
im basically trying to create an app for a client (on Plus) that sells a health drink on subscriptions. on first time purchase the customer gets a couple of free gifts added to the line items in checkout. however, some are bypassing the rule that it should be only a first time purchase by cancelling subscriptions, then re-purchasing.
So with Gadget, im trying to build an app that can check the email address inputted, if its been used for an order in the past then remove the free gifts automatically.
I've deployed a Shopify Function (free-product-validator) for cart/checkout validation. The function:
Builds successfully (WASM file generated) Deploys without errors via yarn shopify:deploy:development Shows as "Released" in Shopify Partner Dashboard (version reformed-no-free-gifts-develop-9) Listed in Partner Dashboard under "Functions" with handle free-product-validator Doesnt appear in Shopify Admin → Settings → Checkout → Checkout rules
Expected outcome: The function should appear under "Checkout rules" in Shopify Admin so I can enable it to validate carts and block checkout for customers with free products who have previous orders.
What I've tried:
Waited 10+ minutes for propagation Refreshed Shopify Admin multiple times Updated API version from 2025-07 to 2025-10 to match app Verified function.wasm exists in dist/ folder
Function details:
Target: cart.validations.generate.run API version: 2025-10 Uses customer metafield: customer_attributes.hasReceivedFreeProducts
Is there a configuration step I'm missing to make Shopify recognize the function in the Admin UI?