I want to add a new feature to the checkout page that automatically adds a State Mandated Recycle Fee product when a user selects a specific state (California, Rhode Island).
I am about to switch to Checkout customization, but I am having difficulty finding a way to add this custom code to the checkout page.
I tried to use Checkout UI extensions, but I couldn’t find any way to add the script. The extensions only allow adding their components, and there is no option to add custom scripts.
I replied on your other issue but I think your confusion is that you are looking for somewhere in the admin to put your code - you instead need to write a local application and push it to Shopify.
Also worth mentioning (if you’re not already aware) that Shopify is soon deprecating access to the checkout.liquid file so you’ll want to find a new way to do this anyway, assuming it’s a critical function that you rely upon for your store.