So client ended up being totally fine with 1-step checkout so that’s the route we’re going to continue down.
After that I had the app fully working, on checkout it tagged customers correctly, and then an Order Discount function would run to check customer tags and apply a discount if certain criteria was met.
I was getting function run logs in my partners panel extension page for the app until recently.
Now for the life of my I cannot get the function to run whatsoever.
Checking for the function in my development store using Shopify Graphiql I can see that Shopify is registering my function - the id lines up with what I’m seeing on the extension page of the app’s dashboard, but on checkout it doesn’t run, and I don’t get any “runs” inside my partners panel.
When I land on the checkout page I do see a call to https://{my-store}.myshopify.com/private_access_tokens?id=... which is returning a 401 error. Through another post on this forum I tried completely uninstalling my app, deleting it, and creating another one for testing with no luck at all.
Any help or ideas on why Shopify appears to be registering my function but it doesn’t run at the correct target (purchase.order-discount.run) would be greatly appreciated.